Tag «tensorflow»

Tensorflow: Basics -I

Let us start with some basics of addition and multiplication program and represent them in a tensorboard. import tensorflow as tfx=tf.constant(1,name=’x’)m=tf.constant(2,name=’y’)z=tf.constant(3,name=’z’)prod=tf.multiply(x,m,name=’multiply’)add=tf.add(prod,z,name=’add’)with tf.Session() as sess: writer=tf.summary.FileWriter(logdir=’./graph’,graph=sess.graph) print(sess.run(add))Output is :5 Now, if we want to check the graph, we have to run following command in Linux(Note: I have used Kali linux), read different types of tensor in …