torch.mps ¶
译者:片刻小哥哥
项目地址:https://pytorch.apachecn.org/2.0/docs/mps
原始地址:https://pytorch.org/docs/stable/mps.html
该软件包支持在 Python 中访问 MPS(Metal Performance Shaders)后端的接口。Metal 是 Apple 用于对 Metal GPU(图形处理器单元)进行编程的 API。使用 MPS 意味着可以通过在金属 GPU 上运行工作来提高性能。有关更多详细信息,请参阅 https://developer.apple.com/documentation/metalperformanceshaders。
MPS Profiler ¶
|
|
profiler.start |
Start OS Signpost tracing from MPS backend. |
profiler.stop |
Stops generating OS Signpost tracing from MPS backend. |
profiler.profile |
Context Manager to enabling generating OS Signpost tracing from MPS backend. |
MPS 事件 ¶