New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSTM is not working with ModelCheckpoint callback #30990
Comments
I am experiencing a similar issue.print(tf.version.GIT_VERSION, tf.version.VERSION) > 2.2.4-tfOS: Ubuntu
|
I am able to reproduce the issue on Colab with Tensorflow version 2.0.0.beta1. Please take a look at gist of Colab. Thanks! |
I could reproduce the issue with |
Thanks for reporting the issue, let me take a look. |
I wasn't be able to reproduce issue with latest nightly in tf-nightly-gpu-2.0-preview==2.0.0.dev20190731, somehow the issue was fixed recently. Can u have a try again? Thanks. |
I am closing the issue. I can confirm that the issue wasn't reproducible with |
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information
You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0:
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
2. TF 2.0:python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
While training a model with
tf.keras.layers.LSTM
and havingtf.keras.callbacks.ModelCheckpoint
in callbacks,model.fit
stops with an error message at end of last epoch, and no model weights is saved asModelCheckpoint
should do.Describe the expected behavior
model.fit
should train the model, and model weights should be saved in desired files.Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Here is an example which reproduces this error:
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Here is error message after
model.fit
with the precedent code snippet:The same error occurs on a Linux machine with tf-nightly (
2.0.0-dev20190723
).Thanks for help!
The text was updated successfully, but these errors were encountered: