スポンサーリンク
カテゴリ:Tensorboard
Python バージョン:Python2.7
Tensorflowバージョン:Tnsorflow 1.0
OSバージョン:Ubuntu 16.04.2
import tensorflow as tf
c1 = tf.constant(1)
c2 = tf.constant(2)
c3 = tf.constant(3)
c1_c2 = tf.add(c1, c2)
c1_c2_c3 = tf.add(c1_c2, c3)
with tf.Session() as sess:
result = sess.run(c1_c2_c3)
print(result)
tf.train.SummaryWriter('/tmp/logfile', sess.graph)
import tensorflow as tf
c1 = tf.constant(1)
c2 = tf.constant(2)
c3 = tf.constant(3)
c1_c2 = tf.add(c1, c2)
c1_c2_c3 = tf.add(c1_c2, c3)
with tf.Session() as sess:
result = sess.run(c1_c2_c3)
print(result)
writer = tf.summary.FileWriter('/tmp/logfile', graph=sess.graph)
スポンサーリンク