ptrblck:

x = x.expand(-1, -1, 6, 2)


RuntimeError: The expanded size of the tensor (6) must match the existing size (2) at non-singleton dimension 2.  Target sizes: [-1, -1, 6, 2].  Tensor sizes: [2, 2, 2, 2]
getting this error when using x = x.expand(-1, -1, 6, 2)