import tensorflow as tf
b=tf.Variable(tf.zeros([100]))
w=tf.Variable(tf.random_uniform([784,100],-1,1))
x=tf.placeholder(name="x")
出现如下错误:
TypeError: placeholder() takes at least 1 argument (1 given)
请教如何解决
import tensorflow as tf
b=tf.Variable(tf.zeros([100]))
w=tf.Variable(tf.random_uniform([784,100],-1,1))
x=tf.placeholder(name="x")
出现如下错误:
TypeError: placeholder() takes at least 1 argument (1 given)
请教如何解决
placeholder 有个必须的参数 dtype 设置上 试试