import tensorflow as tf
a = tf.ones([1,3])
b = tf.fill([1,3],3.)
print("a:",a)
print("b:",b)
print("a+b:",tf.add(a,b))
print("a-b:",tf.subtract(a,b))
print("a*b:",tf.multiply(a,b))
print("b/a:",tf.divide(b,a))
"""
a: tf.Tensor([[1. 1. 1.]], shape=(1, 3), dtype=float32)
b: tf.Tensor([[3. 3. 3.]], shape=(1, 3), dtype=float32)
a+b: tf.Tensor([[4. 4. 4.]], shape=(1, 3), dtype=float32)
a-b: tf.Tensor([[-2. -2. -2.]], shape=(1, 3), dtype=float32)
a*b: tf.Tensor([[3. 3. 3.]], shape=(1, 3), dtype=float32)
b/a: tf.Tensor([[3. 3. 3.]], shape=(1, 3), dtype=float32)
"""