In [16]:
import tensorflow as tf

In [17]:
node1= tf.constant(3.0,tf.float32)
node2= tf.constant(4.0)#implicitamente float32
print(node1,node2)


Tensor("Const_6:0", shape=(), dtype=float32) Tensor("Const_7:0", shape=(), dtype=float32)

In [18]:
sess = tf.Session()
print(sess.run([node1,node2]))


[3.0, 4.0]

In [ ]: