🐛 [Bug] torch._export.serde.serialize.SerializeError: Unsupported list/tuple argument type
upon torch_tensorrt.save
for ExportedProgram
#3303
Labels
bug
Something isn't working
Bug Description
I have compiled a model and it works as expected, it produces results that are very similar to the original PyTorch model.
I am trying to save the compiled model, but it fails with several exceptions, that look like it cannot serialize input tensors. I get the following output:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected to see a saved optimized model at saved_model.ep, so I do not have to recompile it at every run of a program.
Environment
conda
,pip
,libtorch
, source):uv add torch
Additional context
The text was updated successfully, but these errors were encountered: