MorseNet icon indicating copy to clipboard operation
MorseNet copied to clipboard

It would be nice to have a tensorflow V2 version because most of the libraries has now been deprecated

Open antonjan opened this issue 3 years ago • 0 comments

I try to use the V1 to V2 script migration but got stuck with the following. tf_upgrade_v2 --infile ./tensorflow_lstm_ctc_train.py --outfile ./tensorflow_lstm_ctc_traini_v2.py --reportfile report.txt

File: ./tensorflow_lstm_ctc_train.py

./tensorflow_lstm_ctc_train.py:83:25: WARNING: tf.contrib.rnn.LayerNormBasicLSTMCell requires manual check. (Manual edit required) tf.contrib.rnn.LayerNormBasicLSTMCell has been migrated to tfa.rnn.LayerNormLSTMCell in TensorFlow Addons. The API spec may have changed during the migration. Please see https://github.com/tensorflow/addons for more info. ./tensorflow_lstm_ctc_train.py:83:25: WARNING: Using member tf.contrib.rnn.LayerNormBasicLSTMCell in deprecated module tf.contrib.rnn. (Manual edit required) tf.contrib.rnn.* has been deprecated, and widely used cells/functions will be moved to tensorflow/addons repository. Please check it there and file Github issues if necessary. ./tensorflow_lstm_ctc_train.py:83:25: ERROR: Using member tf.contrib.rnn.LayerNormBasicLSTMCell in deprecated module tf.contrib. tf.contrib.rnn.LayerNormBasicLSTMCell 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.

Maybe your help here could be valuable Thanks Anton

antonjan avatar Mar 07 '21 07:03 antonjan