brkirch 16b4509fa6 Add numpy fix for MPS on PyTorch 1.12.1
When saving training results with torch.save(), an exception is thrown:
"RuntimeError: Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead."

So for MPS, check if Tensor.requires_grad and detach() if necessary.
2022-12-17 04:22:58 -05:00
..
2022-12-09 23:03:06 +09:00
2022-09-05 23:08:06 +03:00
2022-11-17 00:08:21 -05:00
2022-12-03 18:06:33 +03:00
2022-09-07 12:32:28 +03:00
2022-12-03 18:45:51 +03:00
2022-12-03 18:06:33 +03:00
2022-11-11 21:14:10 +07:00
2022-11-26 16:10:46 +03:00
2022-10-19 11:52:12 +03:00