安装完TensorFlow,并且在命令行调试成功后。打开spyder 然后输入测试程序 :
import tensorflow as tf x = tf.Variable(3) y = tf.Variable(5) z=x+y init = tf.initialize_all_variables() with tf.Session() as sess: sess.run(init) print(sess.run(z))
发现报错'module' object has no at
安装完TensorFlow,并且在命令行调试成功后。打开spyder 然后输入测试程序 :
import tensorflow as tf x = tf.Variable(3) y = tf.Variable(5) z=x+y init = tf.initialize_all_variables() with tf.Session() as sess: sess.run(init) print(sess.run(z))
发现报错'module' object has no at