Valified_Code_Classify icon indicating copy to clipboard operation
Valified_Code_Classify copied to clipboard

FIX api usage

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

Dear developers,

I found one deprecated usage of TensorFlow APIs in your code as shown below and fixed it for you.

tf.initialize_all_variables has been deprecated in tf v0.12.0 and it's better to replace it with tf.global_variables_initializer to get the benefit of new APIs.

I made a fix for you which can make your code be compatible on more versions of TensorFlow. Hope you could take my advice and look forward to your reply! 😃

TITAN-PyCompat avatar Apr 21 '19 15:04 TITAN-PyCompat