Skip to content

Conversation

TITAN-PyCompat
Copy link

@TITAN-PyCompat TITAN-PyCompat commented Apr 19, 2019

Hi developers,

When I use your repository, I found that there might be some potential detrimental usage of TensorFlow in your code and I help you modified as below:

tf.to_float has been deprecated since tf 1.13.0 and removed in tf 2.0.0-alpha. It's better to replace it with tf.cast, otherwise, it might lead to a crash in the future.

tf.contrib.framework.get_global_step has been deprecated since tf 1.4.0 and it's better to replace it with its new version API tf.train.get_global_step.

tf.contrib.metrics.streaming_accuracy has been deprecated since tf 1.5.0 and it's better to replace it with tf.metrics.accuracy.

@raviqqe @davidyapdy
Hope you could take my advice and look forward to your reply! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant