瀏覽代碼

Correct tf types

Aymeric Damien 9 年之前
父節點
當前提交
34115400c3
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/3 - Neural Networks/convolutional_network.py

+ 3 - 3
examples/3 - Neural Networks/convolutional_network.py

@@ -24,9 +24,9 @@ n_classes = 10 # MNIST total classes (0-9 digits)
 dropout = 0.75 # Dropout, probability to keep units
 
 # tf Graph input
-x = tf.placeholder(tf.types.float32, [None, n_input])
-y = tf.placeholder(tf.types.float32, [None, n_classes])
-keep_prob = tf.placeholder(tf.types.float32) #dropout (keep probability)
+x = tf.placeholder(tf.float32, [None, n_input])
+y = tf.placeholder(tf.float32, [None, n_classes])
+keep_prob = tf.placeholder(tf.float32) #dropout (keep probability)
 
 # Create model
 def conv2d(img, w, b):