摘要:
#计数器 import tensorflow as tf state = tf.Variable(0,name='counter') #设定变量print(state.name) #打印变量one = tf.constant(1) new_value = tf.add(state,one) upda 阅读全文
摘要:
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 阅读全文