-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Mixed-precision stateful LSTM/GRU training not working #20605
Comments
Hi @larschristensen - Thanks for reporting the issue. Here as per your code getting error because you are using
Here attached gist is working fine with Timeseries forecasting for weather prediction. |
@mehtamansi29 I have modified the weather forecasting prediction example, so that it works with |
@larschristensen , I faced same issue but not with |
@Surya2k1 Thanks, it indeed works as expected on |
Enabling mixed-precision mode when training a stateful LSTM or GRU using Keras v3.7.0 fails with error messages like this:
The issue can for example be recreated by modifying the weather forecasting example located at "https://github.com/keras-team/keras-io/blob/master/examples/timeseries/timeseries_weather_forecasting.py" to use a stateful LSTM as in the attached source code.
timeseries_weather_forecasting.zip
When mixed-precision mode is disabled, it works as expected. Hence, this is a problem only in mixed-precision mode.
The text was updated successfully, but these errors were encountered: