Это пример кода.
import tensorflow as tf
const1 = tf.constant(2)
const2 = tf.constant(3)
add_op = tf.add(const1,const2)
mul_op = tf.mul(add_op,const2)
with tf.Session() as sess:
result,result2 = sess.run([mul_op,add_op])
print(result)
print(result2)
tf.train.SummaryWriter('./',sess.graph)
это показывает сообщение, как это,
Tensor("Add:0", shape=(), dtype=int32)
Однако файл не создается.