473361 (1) [Avatar] Offline
#1
It appears that alias function "tf.neg", referenced in figure 2.7 and exercise 2.3, has been obsolesced as of TensorFlow 1.0.0.
"tf.mul" and "tf.sub" are also listed as deprecated (though the calls plainly won't run).

https://stackoverflow.com/questions/42217059/tensorflowattributeerror-module-object-has-no-attribute-mul
https://github.com/tensorflow/tensorflow/releases/tag/v1.0.0-rc1
aakoch (2) [Avatar] Offline
#2
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-e2c28a54d033> in <module>()
      1 matrix = tf.constant([[1., 2.]])
----> 2 negMatrix = tf.neg(matrix)

AttributeError: 'module' object has no attribute 'neg'