You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't fail Variable.__repr__ if the value cannot be retrieved. (#21788)
Under some conditions, converting the variable value to numpy may fail. We don't want to fail `__repr__` in this case. I my example, this was preventing this exception from being raised and osbcuring the real issue:
https://github.com/keras-team/keras/blob/master/keras/src/backend/common/variables.py#L281-L288
Additionally, the exception was not reporting the shape used for comparison (`self.shape`).
0 commit comments