Skip to content

🐛 [Bug] Debugger API has issues if we install python only build #3697

@peri044

Description

@peri044

Bug Description

Error:

File "/work/TensorRT/tools/groot/Isaac-GR00T/run_groot.py", line 130, in compile_vl_components
    with torch_tensorrt.dynamo.Debugger(log_level="debug") as debugger:
  File "/work/TensorRT/py/torch_tensorrt/dynamo/debug/_Debugger.py", line 96, in __enter__
    self.rt_level = torch.ops.tensorrt.get_logging_level()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.13/lib/python3.11/site-packages/torch/_ops.py", line 1364, in __getattr__
    raise AttributeError(
AttributeError: '_OpNamespace' 'tensorrt' object has no attribute 'get_logging_level'

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