Closed hertschuh closed 2 weeks ago
With Torch, x.shape returns a torch.Size, which is a subclass of tuple but can cause different behaviors. In particular convert_to_tensor does not work on torch.Size.
x.shape
torch.Size
tuple
convert_to_tensor
This fixes https://github.com/keras-team/keras/issues/18900
With Torch,
x.shape
returns atorch.Size
, which is a subclass oftuple
but can cause different behaviors. In particularconvert_to_tensor
does not work ontorch.Size
.This fixes https://github.com/keras-team/keras/issues/18900