This tutorial is with TF2.0, eager execution is by default enabled inTensorFlow2.0, if you are using earlier version of TensorFlow enable eager execution to follow this post.
import tensorflow as tf
t1 = tf.constant(value = [34, 35, 54], dtype = tf.int32)
t2 = tf.constant(value = [4, 39, 32], dtype = tf.int32)
t12 = tf.add(x=t1, y=t2)
print(t12)
print(t12.get_shape())
Category: TensorFlow
Similar Articles