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
#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'