Skip to content

Commit

Permalink
Update barren_plateaus.ipynb (tensorflow#141)
Browse files Browse the repository at this point in the history
* Update barren_plateaus.ipynb

changed this
```try:
    %tensorflow_version 2.x
except Exception:
    pass
```
to
```try:
        # %tensorflow_version only works in Colab.
    %tensorflow_version 2.x
except Exception:
    pass
```

* Revert "Update barren_plateaus.ipynb"

This reverts commit db9e2e5.

* Update barren_plateaus.ipynb

* Update barren_plateaus.ipynb

* Update gradients.ipynb

* Update hello_many_worlds.ipynb

* Update mnist.ipynb

* Update qcnn.ipynb

* Update gradients.ipynb

* Update hello_many_worlds.ipynb

* Update mnist.ipynb

* Update qcnn.ipynb

Co-authored-by: MichaelBroughton <[email protected]>
  • Loading branch information
abhinavsp0730 and MichaelBroughton authored Mar 12, 2020
1 parent 3b934bf commit 953cf0d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/tutorials/barren_plateaus.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
},
"source": [
"try:\n",
" # %tensorflow_version only works in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
Expand Down
1 change: 1 addition & 0 deletions docs/tutorials/gradients.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
},
"source": [
"try:\n",
" # %tensorflow_version only works in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
Expand Down
1 change: 1 addition & 0 deletions docs/tutorials/hello_many_worlds.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
},
"source": [
"try:\n",
" # %tensorflow_version only works in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
Expand Down
1 change: 1 addition & 0 deletions docs/tutorials/mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"outputs": [],
"source": [
"try:\n",
" # %tensorflow_version only works in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
Expand Down
1 change: 1 addition & 0 deletions docs/tutorials/qcnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
},
"source": [
"try:\n",
" # %tensorflow_version only works in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
Expand Down

0 comments on commit 953cf0d

Please sign in to comment.