mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
The original motivation for MYPYINDUCTOR was a faster type checking configuration that only checked a subset of files. With the removal of `follow_imports = ignore`, we are now able to use dmypy to do fast incremental typechecking, eliminating the need for this. Perhaps erroneously, when I tee'ed up this PR I elected to delete the `follow_imports = skip` designations in the mypy-inductor.ini. This lead to a number of extra type error suppressions that I manually edited. You will need to review. Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/118432 Approved by: https://github.com/Skylion007 ghstack dependencies: #118414, #118418
15 lines
406 B
Python
15 lines
406 B
Python
# mypy: ignore-errors
|
|
|
|
# import torch # type: ignore[import]
|
|
# from .common import device_from_inputs, fake_tensor_unsupported # type: ignore[import]
|
|
# from .registry import register_backend # type: ignore[import]
|
|
|
|
"""
|
|
Placeholder for TensorRT backend for dynamo via torch-tensorrt
|
|
"""
|
|
|
|
# @register_backend
|
|
# def tensorrt(gm, example_inputs):
|
|
# import torch_tensorrt # type: ignore[import]
|
|
# pass
|