Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

TensorFlow 2.

0 Upgrade Script
-----------------------------
Converted 1 files
Detected 2 issues that require attention
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
File: TFANN.py
--------------------------------------------------------------------------------
TFANN.py:83:20: ERROR: Using member tf.contrib.layers.flatten in deprecated module
tf.contrib. tf.contrib.layers.flatten cannot be converted automatically. tf.contrib
will not be distributed with TensorFlow 2.0, please consider an alternative in non-
contrib TensorFlow, a community-maintained repository such as tensorflow/addons, or
fork the required code.
TFANN.py:373:8: WARNING: *.save requires manual check. (This warning is only
applicable if the code saves a tf.Keras model) Keras model.save now saves to the
Tensorflow SavedModel format by default, instead of HDF5. To continue saving to
HDF5, add the argument save_format='h5' to the save() function.
================================================================================
Detailed log follows:

================================================================================
--------------------------------------------------------------------------------
Processing file 'TFANN.py'
outputting to 'TFANN20.py'
--------------------------------------------------------------------------------

53:9: INFO: Changing tf.contrib.layers xavier initializer to a


tf.compat.v1.keras.initializers.VarianceScaling and converting arguments.

62:16: INFO: Added keywords to args of function 'tf.nn.conv2d'


62:16: INFO: Renamed keyword argument for tf.nn.conv2d from filter to filters
72:16: INFO: Added keywords to args of function 'tf.nn.conv1d'
72:16: INFO: Renamed keyword argument for tf.nn.conv1d from value to input
77:16: INFO: Added keywords to args of function 'tf.nn.conv1d'
77:16: INFO: Renamed keyword argument for tf.nn.conv1d from value to input
80:16: INFO: Changing keep_prob arg of tf.nn.dropout to rate, and recomputing
value.

83:20: ERROR: Using member tf.contrib.layers.flatten in deprecated module


tf.contrib. tf.contrib.layers.flatten cannot be converted automatically. tf.contrib
will not be distributed with TensorFlow 2.0, please consider an alternative in non-
contrib TensorFlow, a community-maintained repository such as tensorflow/addons, or
fork the required code.
90:16: INFO: Added keywords to args of function 'tf.reduce_mean'
92:16: INFO: Added keywords to args of function 'tf.nn.max_pool'
92:16: INFO: Renamed keyword argument for tf.nn.max_pool from value to input
92:16: INFO: Renamed 'tf.nn.max_pool' to 'tf.nn.max_pool2d'
94:16: INFO: Added keywords to args of function 'tf.nn.pool'
98:16: INFO: Added keywords to args of function 'tf.reduce_sum'
166:34: INFO: tf.losses.cosine_distance requires manual check. tf.losses have been
replaced with object oriented versions in TF 2.0 and after. The loss function calls
have been converted to compat.v1 for backward compatibility. Please update these
calls to the TF 2.0 versions.
166:34: INFO: Renamed 'tf.losses.cosine_distance' to
'tf.compat.v1.losses.cosine_distance'
166:92: INFO: tf.losses.hinge_loss requires manual check. tf.losses have been
replaced with object oriented versions in TF 2.0 and after. The loss function calls
have been converted to compat.v1 for backward compatibility. Please update these
calls to the TF 2.0 versions.
166:92: INFO: Renamed 'tf.losses.hinge_loss' to 'tf.compat.v1.losses.hinge_loss'
167:33: INFO: tf.losses.absolute_difference requires manual check. tf.losses have
been replaced with object oriented versions in TF 2.0 and after. The loss function
calls have been converted to compat.v1 for backward compatibility. Please update
these calls to the TF 2.0 versions.
167:33: INFO: Renamed 'tf.losses.absolute_difference' to
'tf.compat.v1.losses.absolute_difference'
167:92: INFO: Renamed 'tf.squared_difference' to 'tf.math.squared_difference'
168:34: INFO: tf.losses.log_loss requires manual check. tf.losses have been
replaced with object oriented versions in TF 2.0 and after. The loss function calls
have been converted to compat.v1 for backward compatibility. Please update these
calls to the TF 2.0 versions.
168:34: INFO: Renamed 'tf.losses.log_loss' to 'tf.compat.v1.losses.log_loss'
170:35: INFO: Renamed 'tf.nn.softmax_cross_entropy_with_logits_v2' to
'tf.nn.softmax_cross_entropy_with_logits'
179:20: INFO: Renamed 'tf.train.AdamOptimizer' to
'tf.compat.v1.train.AdamOptimizer'
180:23: INFO: Renamed 'tf.train.AdagradOptimizer' to
'tf.compat.v1.train.AdagradOptimizer'
181:20: INFO: Renamed 'tf.train.FtrlOptimizer' to
'tf.compat.v1.train.FtrlOptimizer'
182:20: INFO: Renamed 'tf.train.GradientDescentOptimizer' to
'tf.compat.v1.train.GradientDescentOptimizer'
257:20: INFO: Added keywords to args of function 'tf.reduce_mean'
296:21: INFO: Renamed 'tf.ConfigProto' to 'tf.compat.v1.ConfigProto'
298:23: INFO: Renamed 'tf.Session' to 'tf.compat.v1.Session'
352:8: INFO: Renamed 'tf.reset_default_graph' to 'tf.compat.v1.reset_default_graph'
360:20: INFO: Renamed 'tf.train.Saver' to 'tf.compat.v1.train.Saver'
372:16: INFO: Renamed 'tf.train.Saver' to 'tf.compat.v1.train.Saver'
373:8: WARNING: *.save requires manual check. (This warning is only applicable if
the code saves a tf.Keras model) Keras model.save now saves to the Tensorflow
SavedModel format by default, instead of HDF5. To continue saving to HDF5, add the
argument save_format='h5' to the save() function.
469:21: INFO: Renamed 'tf.placeholder' to 'tf.compat.v1.placeholder'
473:21: INFO: Renamed 'tf.placeholder' to 'tf.compat.v1.placeholder'
474:20: INFO: Added keywords to args of function 'tf.reduce_mean'
505:19: INFO: Added keywords to args of function 'tf.argmax'
596:21: INFO: Renamed 'tf.placeholder' to 'tf.compat.v1.placeholder'
600:21: INFO: Renamed 'tf.placeholder' to 'tf.compat.v1.placeholder'
601:20: INFO: Added keywords to args of function 'tf.reduce_mean'
--------------------------------------------------------------------------------

You might also like