FAILED models/test_models.py::test_bert_base_uncased[dtype1] - torch._dynamo.exc.BackendCompilerFailed: backend='torch_tensorrt_backend' raised:
ValueError: __len__() should return >= 0
While executing %permute_6 : [num_users=1] = call_function[target=torch.ops.aten.permute.default](args = (%getitem_3, [0, 2, 1, 3]), kwargs = {})
Original traceback:
None
Use tlparse to see full graph. (https://github.com/pytorch/tlparse?tab=readme-ov-file#tlparse-parse-structured-pt2-logs)
Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
Bug Description
https://github.com/pytorch/TensorRT/actions/runs/31944904591/job/95213434731
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
conda,pip,libtorch, source):Additional context