Skip to content

🐛 [Bug] Missing directory and file in FX path (Python only) installation #1976

Closed
@HolyWu

Description

@HolyWu

Bug Description

  1. torch_tensorrt.fx.converters.impl was not added to the packages and package_dir list, hence the impl directory was not installed.
  2. _Input.py was not installed even though you had added it to package_data because torch_tensorrt was not in the packages list in FX_ONLY. Instead, you have to use py_modules to copy modules that aren't part of a package.
  3. _Input.py imported _enums.py which was also not installed in FX_ONLY. And _enums.py imported stuff from torch_tensorrt._C which was unavailable in FX_ONLY.
  4. torch_tensorrt/dynamo/__init__.py imported compile from torch_tensorrt/dynamo/backend, but the backend directory was not installed in FX_ONLY.

To Reproduce

python3 setup.py install --fx-only

Environment

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

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