Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "device not supported" assert to inductor (#112001)
Fixes #111999 Adds an assert that provides a more informative error message For example, when running a compiled function with mps (currently unsupported): ``` ... File "/Users/andrew.hu/Desktop/pytorch/torch/_inductor/graph.py", line 927, in init_wrapper_code assert wrapper_code_gen_cls is not None, f"Device {device_type} not supported" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised: AssertionError: Device mps not supported ``` Pull Request resolved: #112001 Approved by: https://github.com/peterbell10
- Loading branch information