In [1]:
import tensorflow as tf

In [2]:
a = tf.constant(value=5, dtype=tf.int32, name = "input_a") #텐서보드에서 보기 편하게 하기 위해 name을 지정함
b = tf.constant(value=3, dtype=tf.int32, name = "input_b")

In [3]:
c = tf.multiply(a,b, name="mul_c")
d = tf.add(a,b, name="add_d")
e = tf.add(c,d, name="add_e")

In [4]:
with tf.Session() as sess:
    print(sess.run(e))
    writer = tf.summary.FileWriter("./my_graph_edge", sess.graph) #텐서보드를 위한 저장


23

In [ ]: