tensorflow1.X改变结点值 编程语言 > 机器学习 tensorflow python 发布时间 : 2020-07-04 00:00 字数:38 阅读 : 1234567891011import tensorflow as tfW = tf.Variable(3.14)with tf.Session() as sess: sess.run(tf.global_variables_initializer()) v_W = sess.run(W) v_new_W = sess.run(tf.assign(W, 6.28)) print(v_W,'-->',v_new_W) #3.14 --> 6.28 转载请注明来源 https://tianweiye.github.io