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.

weiju (9) [Avatar] Offline
#1
Hi,

it seems there are some inconsistencies in the use of the function
tensorflow.global_variables_initializer()
. The ones I found
are

- Listing 4.11: calls
tf.global_variables_initializer().run()
, I think all the other variables use
sess.run(tf.global_variables_initializer())
instead

- Listing 5.1: uses
tf.initialize_all_variables()
which is deprecated and is going to be removed according to a warning in Tensorflow 1.0. Same in listing 5.4 and 5.11.

Thanks !



Nishant Shukla (52) [Avatar] Offline
#2
Thank you for your suggestion!

The latest MEAP update no longer uses the old initializer.

The two ways of using the global_variables_initializer are there to show the flexibility of the library.