← Back to events
ActiveAIRelease

viable/strict/1792497064: [inductor] Preserve dtype views in the FX wrapper (#201469) (#201469)

Photo: PyTorch Releases

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

Why it's spreading

Sources