tensorflow - sess.run(train, {x:x_train,y:y_train}) NameError: name 'train' is not defined -
i new tensorflow ..i trying out example on https://www.tensorflow.org/get_started/get_started have installed tensorflow on python 3.5.2 on windows 10 laptop
i getting following error sess.run(train, {x:x_train,y:y_train}) name error: name 'train' not defined
perhaps post nice clean short code here can out. idea forgot copy-paste these lines:
optimizer = tf.train.gradientdescentoptimizer(0.01) train = optimizer.minimize(loss)
good luck!
Comments
Post a Comment