viable/strict/1792497064: [inductor] Preserve dtype views in the FX wrapper (#201469) (#201469)
- PyTorch 近 90 天出现 2599 次
- PyTorch 近 90 天第 2560 次发版
- 上一次:同一天稍早 · viable/strict/1792493526: [Test][XPU] Refactor test_torch.py and enable XPU (#197120)
发生了什么
Summary: Preserve the logical dtype of ReinterpretView aliases in wrapper_fxir.py . When a reinterpretation changes dtype, emit aten.view.dtype after its shape/stride view and use the view dtype for temporary WorkspaceArg s. This keeps FP8 and other equal-width dtype views from inheriting their backing buffer's dtype during FX code generation. Add test_reinterpret_dtype_view regression coverage for dtype, raw bytes,…
摘要按规则整理自下方来源原文