tensorflow-exercises icon indicating copy to clipboard operation
tensorflow-exercises copied to clipboard

Error in math1

Open vortexkd opened this issue 6 years ago • 0 comments

Q8.

_x = np.array([1, 2, 3], np.int32)
_y = np.array([4, 5, 6], np.int32)
_z = np.array([7, 8, 9], np.int32)

should add up to [12, 15, 18], given: [9,12, 15] Also Q10. _x = np.array([1, -1]) x = tf.convert_to_tensor(_x) out1 = tf.negative(x) out2 = -x print(out.eval()) should have print(out.eval()) replaced with print(out1.eval()) and the answer is correspondingly: [-1, 1]

thanks for the great tutorial :)

vortexkd avatar Oct 05 '17 13:10 vortexkd