Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80197e6

Browse files
fengjianfengjian
authored andcommitted
replace tf.types.xxx with tf.xxx
1 parent a443ec6 commit 80197e6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/1 - Introduction/basic_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
# The value returned by the constructor represents the output
2424
# of the Variable op. (define as input when running session)
2525
# tf Graph input
26-
a = tf.placeholder(tf.types.int16)
27-
b = tf.placeholder(tf.types.int16)
26+
a = tf.placeholder(tf.int16)
27+
b = tf.placeholder(tf.int16)
2828

2929
# Define some operations
3030
add = tf.add(a, b)

notebooks/1 - Introduction/basic_operations.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
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
{

notebooks/3 - Neural Networks/alexnet.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"# tf Graph input\n",
9292
"x = tf.placeholder(tf.float32, [None, n_input])\n",
9393
"y = tf.placeholder(tf.float32, [None, n_classes])\n",
94-
"keep_prob = tf.placeholder(tf.types.float32) # dropout (keep probability)"
94+
"keep_prob = tf.placeholder(tf.float32) # dropout (keep probability)"
9595
]
9696
},
9797
{

notebooks/3 - Neural Networks/convolutional_network.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"# tf Graph input\n",
9292
"x = tf.placeholder(tf.float32, [None, n_input])\n",
9393
"y = tf.placeholder(tf.float32, [None, n_classes])\n",
94-
"keep_prob = tf.placeholder(tf.types.float32) #dropout (keep probability)"
94+
"keep_prob = tf.placeholder(tf.float32) #dropout (keep probability)"
9595
]
9696
},
9797
{

0 commit comments

Comments
 (0)