-
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
[tensorflow] backend.convert_to_numpy fails for MirroredStrategy (ValueError: object __array__ method not producing an array) #18625
Comments
Thanks for the report. Can you provide a code snippet (or a Colab) to reproduce the issue? |
I have built the latest master version. The following commit demonstrates the error: |
Thanks for the example, let me take a look |
Should be addressed by #18675 |
Is there a workaround for this facing this on running keras on tensorflow backend tensorflow version on tpu
error
|
Please update to the latest keras version and try again. Thanks. |
but keras-core is : 0.1.7 and keras is 2.14.0 which is relatively latest |
the #18675 is only applied to keras-team/keras but not keras-team/keras-core. |
This call fails for a MirroredStrategy in a multi-gpu tensorflow setting with the following exception:
[ValueError: object __array__ method not producing an array
keras/keras/callbacks/learning_rate_scheduler.py
Line 58 in 66b1c0c
I modified
backend.convert_to_numpy()
as follows:The text was updated successfully, but these errors were encountered: