absolute tensorflow beginner here. I am trying to construct two random tensors and subtract them for an assignment. However I seem to have some issues with understanding how exactly the subtraction process works.
x=tf.random_normal([5],seed=123456)
y=tf.random_normal([5],seed=987654)
print(sess.run(x),sess.run(y))
I get the following outputs:
[ 0.38614973 2.97522092 -0.85282576 -0.57114178 -0.43243945]
[-0.43865281 0.08617876 -2.17495966 -0.24574816 -1.94319296]
But when I try
print(sess.run(x-y))
I get
[-1.88653958 -0.03917438 0.87480474 0.40511152 0.52793759]
Now if I run
print(sess.run(tf.subtract(x,y)))
I also get other wrong values.
[-1.97681355 1.10086703 1.41172433 1.55840468 0.04344697]
I hope somebody can help me out here. Thanks in advance!