摘要: #计数器 import tensorflow as tf state = tf.Variable(0,name='counter') #设定变量print(state.name) #打印变量one = tf.constant(1) new_value = tf.add(state,one) upda 阅读全文
posted @ 2018-04-13 17:19 明夫人 阅读(147) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tfimport numpy as np #create datax_data = np.random.rand(100).astype(np.float32)y_data = x_data*0.1 + 0.3 ###create tensorflow st 阅读全文
posted @ 2018-04-13 10:41 明夫人 阅读(300) 评论(0) 推荐(0) 编辑