Hi,
I receive an error while using this function for reshaping my tensor
def reshape_fortran(x, shape):
    if len(x.shape) > 0:
        x = x.permute(*reversed(range(len(x.shape))))
    return x.reshape(*reversed(shape)).permute(*reversed(range(len(shape))))

and it says:
RuntimeError: _unsafe_view does not support automatic differentiation for outputs with complex dtype.

it is weird cause, sometime I receive it and sometime it works fine!
what is this unsafe_view?