Same as before: make sure to pass the inputs to the RNN as [seq_len, batch_size, features].
If dim3 is now the time dimension and (dim1+dim2) are the features:
x = x.view(x.size(0), -1, x.size(3))
x = x.permute(2, 0, 1)