Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [Bug] Failures in test_dyn_models.py #2794

Open
zewenli98 opened this issue Apr 29, 2024 · 0 comments
Open

馃悰 [Bug] Failures in test_dyn_models.py #2794

zewenli98 opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zewenli98
Copy link
Collaborator

Bug Description

The failures were shown in CI (https://github.com/pytorch/TensorRT/actions/runs/8863273616/job/24391143167?pr=2781):

=========================== short test summary info ============================
FAILED models/test_dyn_models.py::test_base_dynamic - torch.fx.experimental.symbolic_shapes.ConstraintViolationError: Constraints violated (L['x'].size()[0])! For more information, run with TORCH_LOGS="+dynamic".
  - Not all values of L['x'].size()[0] = L['x'].size()[0] in the specified range L['x'].size()[0] <= 8 satisfy the generated guard 4 <= L['x'].size()[0] and L['x'].size()[0] <= 8


You can suppress this exception and fall back to eager by setting:
    import torch._dynamo
    torch._dynamo.config.suppress_errors = True
FAILED models/test_dyn_models.py::test_base_dynamic_fallback - torch.fx.experimental.symbolic_shapes.ConstraintViolationError: Constraints violated (L['x'].size()[0])! For more information, run with TORCH_LOGS="+dynamic".
  - Not all values of L['x'].size()[0] = L['x'].size()[0] in the specified range L['x'].size()[0] <= 8 satisfy the generated guard 4 <= L['x'].size()[0] and L['x'].size()[0] <= 8


You can suppress this exception and fall back to eager by setting:
    import torch._dynamo
    torch._dynamo.config.suppress_errors = True
=================== 2 failed, 2 passed, 8 warnings in 31.07s ===================

Environment

  • Torch-TensorRT Version): main branch
  • PyTorch Version: 2.3
  • TensorRT: 10.0.1.6
@zewenli98 zewenli98 added the bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant