viable/strict/1792432248: [MPS] Migrate mse forward to metal (#201351)
- PyTorch 近 90 天出现 2585 次
- PyTorch 近 90 天第 2550 次发版
- 上一次:同一天稍早 · viable/strict/1792428192: [MPS] Migrate std_mean to metal (#201310)
发生了什么
Replace MPSGraph MSE forward with Metal. While perf isn't the best on eager, it matches CPU/CUDA in implementation: an elementwise kernel followed by a separate reduction, this change doesn't affect torch compile which stays the same for perf. Perf: Shape Layout Dtype Reduction Before (µs) After (µs) Speedup 1 × 16 × 8 × 8 channels-last bf16 none 40.72 3.30 12.35× 1 × 16 × 8 × 8 strided (transpose H/W) fp32 none 36.…
摘要按规则整理自下方来源原文