You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Models exported with torch.export.export, saved, loaded and then compiled with torch_tensorrt.dynamo.compile cannot be loaded with torch.export.load with error:
W0820 14:11:53.628000 139673176707712 torch/fx/experimental/symbolic_shapes.py:4424] s0 is not in var_ranges, defaulting to unknown range.
E0820 14:11:53.628000 139673176707712 torch/fx/experimental/recording.py:280] failed while running evaluate_expr(*(s0 >= 0, True), **{'fx_node': None})
To Reproduce
Code below should reproduce issue. It can be also observed with more complex model like EfficientNet.
Hello @kacper-kleczewski , I tried your script with the main branch (which is on 2.5.0.dev20240822+cu124) and it works fine. Here's the slightly modified script that I tried
Bug Description
Models exported with
torch.export.export
, saved, loaded and then compiled withtorch_tensorrt.dynamo.compile
cannot be loaded withtorch.export.load
with error:To Reproduce
Code below should reproduce issue. It can be also observed with more complex model like EfficientNet.
Expected behavior
Succesfull loading of the model.
Environment
Nvidia PyTorch container 24.07
The text was updated successfully, but these errors were encountered: