tensorflow中Variable和Placeholder的学习
今天学习了tensorflow中的变量对象Varible
通过下列代码来具体讨论
import tensorflow as tf
创建一个Variable对象
state = tf.Variable(0,name='counter')
one = tf.constant(1)
new_value = tf.add(state,one)
update = tf.assign(state,n
原创
2017-10-26 16:53:25 ·
267 阅读 ·
0 评论