by anvuong · 2y ago · 0 comments
"AttributeError: module 'torch' has no attribute 'export'"
The torch.export API is currently in active development with planned breaking changes. The installation guide for this is still very minimal, anyone knows how to get it working on torch 2.0?
I may have some more time to debug my trace tonight (i.e. remove conditionals from model + make sure everything is on CPU) and will update if I have any new insights.
``` from torch.export import export ... example_args = (dummy_input) exported_program = export(model, args=example_args) ```
Links: - torch.export docs: https://pytorch.org/docs/stable/export.html#serialization - Using 24.02 container: https://docs.nvidia.com/deeplearning/frameworks/pytorch-rele...