Skip to content

🐛 [Bug] getitem node does not have meta data  #2478

Closed
@peri044

Description

Bug Description

All export serde tests fail with the following error due to some changes in the nightly

exp_program = create_trt_exp_program(patched_module)
  File "/home/dperi/Downloads/TensorRT/py/torch_tensorrt/dynamo/_exporter.py", line 246, in create_trt_exp_program
    trt_exp_program = ExportedProgram(
  File "/home/dperi/.pyenv/versions/3.10.4/lib/python3.10/site-packages/torch/export/exported_program.py", line 129, in __init__
    self.verifier().check(self)
  File "/home/dperi/.pyenv/versions/3.10.4/lib/python3.10/site-packages/torch/_export/verifier.py", line 126, in check
    self._check_graph_module(ep.graph_module)
  File "/home/dperi/.pyenv/versions/3.10.4/lib/python3.10/site-packages/torch/_export/verifier.py", line 183, in _check_graph_module
    _check_val(node)
  File "/home/dperi/.pyenv/versions/3.10.4/lib/python3.10/site-packages/torch/_export/verifier.py", line 57, in _check_val
    raise SpecViolationError(f"Node.meta {node.name} is missing val field.")

To Reproduce

In our test suite, python -m pytest test_export_serde.py

Expected behavior

Export serde should work properly

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

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