Hi, I have tried [python train.py] on docker, but I have error below.
root@ea184c9f3a92:/Wavenet-Estimator# python train.py
WARNING:tensorflow:From /Wavenet-Estimator/wavenet/module.py:206: The name tf.layers.Conv2D is deprecated. Please use tf.compat.v1.layers.Conv2D instead.
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
WARNING:tensorflow:From train.py:25: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
WARNING:tensorflow:From train.py:25: The name tf.GPUOptions is deprecated. Please use tf.compat.v1.GPUOptions instead.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/training_util.py:236: Variable.initialized_value (from tensorflow.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Use Variable.read_value. Variables in 2.X are initialized automatically both in eager and graph (inside tf.defun) contexts.
WARNING:tensorflow:From /Wavenet-Estimator/dataset.py:63: shuffle_and_repeat (from tensorflow.contrib.data.python.ops.shuffle_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.data.experimental.shuffle_and_repeat(...)
.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/data/python/ops/shuffle_ops.py:54: shuffle_and_repeat (from tensorflow.python.data.experimental.ops.shuffle_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.data.Dataset.shuffle(buffer_size, seed)
followed by tf.data.Dataset.repeat(count)
. Static tf.data optimizations will take care of using the fused implementation.
WARNING:tensorflow:From /Wavenet-Estimator/dataset.py:14: The name tf.FixedLenSequenceFeature is deprecated. Please use tf.io.FixedLenSequenceFeature instead.
WARNING:tensorflow:From /Wavenet-Estimator/dataset.py:15: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.
WARNING:tensorflow:From /Wavenet-Estimator/dataset.py:20: The name tf.parse_single_example is deprecated. Please use tf.io.parse_single_example instead.
WARNING:tensorflow:From /Wavenet-Estimator/wavenet/module.py:31: The name tf.layers.Conv1D is deprecated. Please use tf.compat.v1.layers.Conv1D instead.
Traceback (most recent call last):
File "train.py", line 77, in
train()
File "train.py", line 73, in train
tf.estimator.train_and_evaluate(wavenet, train_spec, eval_spec)
File "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 473, in train_and_evaluate
return executor.run()
File "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 613, in run
return self.run_local()
File "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 714, in run_local
saving_listeners=saving_listeners)
File "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 367, in train
loss = self._train_model(input_fn, hooks, saving_listeners)
File "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1158, in _train_model
return self._train_model_default(input_fn, hooks, saving_listeners)
File "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1188, in _train_model_default
features, labels, ModeKeys.TRAIN, self.config)
File "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1146, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "/Wavenet-Estimator/wavenet/model.py", line 332, in wavenet_fn
wavenet = WaveNet(hparams)
File "/Wavenet-Estimator/wavenet/model.py", line 19, in init
name='input_convolution')
File "/Wavenet-Estimator/wavenet/module.py", line 52, in init
self._track_checkpointable(layer, name='layer')
AttributeError: 'CasualConv1D' object has no attribute '_track_checkpointable'