1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| import tensorflow as tf import os
x = tf.Variable([[1,1]], name='n_x') w = tf.Variable([[2,2],[2,2]],name='n_w') b = tf.Variable([[3,3]], name='n_b') y = tf.matmul(x,w)+b
sess=tf.Session() tf.summary.FileWriter('./logs/',graph=sess.graph)
os.system('tensorboard --logdir logs')
|