pytorch
de7ec2dd - [MPS] Allow saved models to be loaded directly to MPS through torch.jit.load (#102204)

Commit
1 year ago
[MPS] Allow saved models to be loaded directly to MPS through torch.jit.load (#102204) <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 94eed69</samp> This pull request adds support for serializing and deserializing tensors on the `mps` device using JIT. It includes a test case in `test/test_mps.py` and a device handling logic in `torch/csrc/jit/serialization/unpickler.cpp`. Fixes https://github.com/pytorch/pytorch/issues/88820, https://github.com/pytorch/pytorch/issues/87504 Pull Request resolved: https://github.com/pytorch/pytorch/pull/102204 Approved by: https://github.com/kulinseth, https://github.com/malfet
Author
Committer
Parents
Loading