I've inserted view as real after setting the return_complex values to true because PyTorch 2.0 deprecates the return_complex into runtime errors.
This allows for use on Mac with cpu. After Sonoma and some PyTorch versions maybe this will also allow for mps, but for now the view_as operators aren't implemented in mps and can't be shifted to cpu fallback.
I've inserted view as real after setting the return_complex values to true because PyTorch 2.0 deprecates the return_complex into runtime errors.
This allows for use on Mac with cpu. After Sonoma and some PyTorch versions maybe this will also allow for mps, but for now the view_as operators aren't implemented in mps and can't be shifted to cpu fallback.