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
**Edited to add, I do not have the ability to test gpu behavior outside of google colab, so this might be a bug that's been fixed on the latest version, or due to colab-specific misconfiguration.
The text was updated successfully, but these errors were encountered:
I was able to reproduce the reported behavior, attaching the Gist here
with the Torch backend, it's producing the expected outcome as below Output types and shapes: [(<class 'torch.Tensor'>, torch.Size([2, 3, 10])), (<class 'torch.Tensor'>, torch.Size([2, 10]))]
Similar issue happening in case of running Keras with Tensorflow backend on desktop. Hidden states of the individual element in a batch are returned as a tuple of the GRU output and not as a Tensor with first dimension equal to batch size.
I opened this on tensorflow repo, and was told to move it here: tensorflow/tensorflow#74475
The short of it, gru, at least on google colab(keras 3.4.1) returns wrong things when run with gpu available.
Minimal way to reproduce here:
This prints
With GPU:
With CPU:
CPU behavior seems correct.
**Edited to add, I do not have the ability to test gpu behavior outside of google colab, so this might be a bug that's been fixed on the latest version, or due to colab-specific misconfiguration.
The text was updated successfully, but these errors were encountered: