Skip to content

Commit 9eb19b6

Browse files
committed
Change tf.types.int16 to tf.int16
1 parent d56ab13 commit 9eb19b6

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

deep-learning/tensor-flow-examples/notebooks/1_intro/basic_operations.ipynb

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"cell_type": "code",
18-
"execution_count": 2,
18+
"execution_count": 1,
1919
"metadata": {
2020
"collapsed": true
2121
},
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 3,
29+
"execution_count": 2,
3030
"metadata": {
3131
"collapsed": true
3232
},
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"cell_type": "code",
44-
"execution_count": 4,
44+
"execution_count": 3,
4545
"metadata": {
4646
"collapsed": false
4747
},
@@ -68,16 +68,16 @@
6868
"cell_type": "code",
6969
"execution_count": 5,
7070
"metadata": {
71-
"collapsed": true
71+
"collapsed": false
7272
},
7373
"outputs": [],
7474
"source": [
7575
"# Basic Operations with variable as graph input\n",
7676
"# The value returned by the constructor represents the output\n",
7777
"# of the Variable op. (define as input when running session)\n",
7878
"# tf Graph input\n",
79-
"a = tf.placeholder(tf.types.int16)\n",
80-
"b = tf.placeholder(tf.types.int16)"
79+
"a = tf.placeholder(tf.int16)\n",
80+
"b = tf.placeholder(tf.int16)"
8181
]
8282
},
8383
{
@@ -194,25 +194,34 @@
194194
" result = sess.run(product)\n",
195195
" print result"
196196
]
197+
},
198+
{
199+
"cell_type": "code",
200+
"execution_count": null,
201+
"metadata": {
202+
"collapsed": true
203+
},
204+
"outputs": [],
205+
"source": []
197206
}
198207
],
199208
"metadata": {
200209
"kernelspec": {
201-
"display_name": "Python 3",
210+
"display_name": "Python 2",
202211
"language": "python",
203-
"name": "python3"
212+
"name": "python2"
204213
},
205214
"language_info": {
206215
"codemirror_mode": {
207216
"name": "ipython",
208-
"version": 3
217+
"version": 2
209218
},
210219
"file_extension": ".py",
211220
"mimetype": "text/x-python",
212221
"name": "python",
213222
"nbconvert_exporter": "python",
214-
"pygments_lexer": "ipython3",
215-
"version": "3.4.3"
223+
"pygments_lexer": "ipython2",
224+
"version": "2.7.5+"
216225
}
217226
},
218227
"nbformat": 4,

0 commit comments

Comments
 (0)