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

FIX tf api compatibility problem

Open TITAN-PyCompat opened this issue 5 years ago • 0 comments

Dear developers,

I found some compatibility problems in your use of TensorFlow APIs, which might lead to crashes in a low version of TensorFlow. And I fix it for you as below:

tf.global_variables_initializer is the updated version of tf.initialize_all_variables, however, it appears until tf 0.12.0-rc0. So for version before that, it's better to use tf.initialize_all_variables to be safe.

@wangz10 Hope you could take my advice and look forward to your reply! 😄

TITAN-PyCompat avatar Apr 22 '19 12:04 TITAN-PyCompat