Skip to content

🐛 [Bug] mypy precommit issues #3600

@peri044

Description

@peri044

Bug Description

py/torch_tensorrt/dynamo/_compiler.py:56: error: Untyped decorator makes function "cross_compile_for_windows" untyped  [misc]
py/torch_tensorrt/dynamo/_compiler.py:726: error: Untyped decorator makes function "compile_module" untyped  [misc]
py/torch_tensorrt/dynamo/_compiler.py:1294: error: Untyped decorator makes function "save_cross_compiled_exported_program" untyped  [misc]
py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py:443: error: Untyped decorator makes function "_save_weight_mapping" untyped  [misc]
py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py:579: error: Untyped decorator makes function "_insert_engine_to_cache" untyped  [misc]
py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py:607: error: Untyped decorator makes function "_pull_cached_engine" untyped  [misc]

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

  • Torch-TensorRT Version (e.g. 1.0.0):
  • PyTorch Version (e.g. 1.0):
  • CPU Architecture:
  • OS (e.g., Linux):
  • How you installed PyTorch (conda, pip, libtorch, source):
  • Build command you used (if compiling from source):
  • Are you using local sources or building from archives:
  • Python version:
  • CUDA version:
  • GPU models and configuration:
  • Any other relevant information:

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions