Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 25 additions & 12 deletions 0_tf_hello_world.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,30 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {
"collapsed": false
"collapsed": false,
"scrolled": true
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"b'Hello World!'\n"
]
}
],
"source": [
"import tensorflow as tf\n",
"import matplotlib\n",
"\n",
"hello = tf.constant('Hello, TensorFlow!')\n",
"sess = tf.Session()\n",
"print(sess.run(hello))"
"# Create TensorFlow object called hello_constant\n",
"hello_constant = tf.constant('Hello World!')\n",
"\n",
"with tf.Session() as sess:\n",
" # Run the tf.constant operation in the session\n",
" output = sess.run(hello_constant)\n",
" print(output) # b'Hello World!' showul appear in output cell just below this line"
]
},
{
Expand All @@ -46,22 +58,23 @@
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python [conda env:IntroToTensorFlow]",
"language": "python",
"name": "python2"
"name": "conda-env-IntroToTensorFlow-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"pygments_lexer": "ipython3",
"version": "3.5.2"
}
},
"nbformat": 4,
Expand Down
10 changes: 5 additions & 5 deletions 1_linear_regression_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python 3",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"pygments_lexer": "ipython3",
"version": "3.5.2"
}
},
"nbformat": 4,
Expand Down
10 changes: 5 additions & 5 deletions 2_mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -282,21 +282,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python 3",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"pygments_lexer": "ipython3",
"version": "3.5.2"
}
},
"nbformat": 4,
Expand Down