viable/strict/1792497064: [inductor] Preserve dtype views in the FX wrapper (#201469) (#201469)
- PyTorch: 2598 events in the last 90 days
- PyTorch: 2559th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1792493526: [Test][XPU] Refactor test_torch.py and enable XPU (#197120)
What happened
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,…
Summary assembled by rule from the sources below