You are passing your input in the channels-last memory format while PyTorch expect channels-first inputs. .permute
the tensor to [batch_size, channels, depth, height, width]
via:
x = x.permute(0, 4, 1, 2, 3).contiguous()
and it should work.
You are passing your input in the channels-last memory format while PyTorch expect channels-first inputs. .permute
the tensor to [batch_size, channels, depth, height, width]
via:
x = x.permute(0, 4, 1, 2, 3).contiguous()
and it should work.