The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

473361 (1) [Avatar] Offline
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).
aakoch (2) [Avatar] Offline
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'