torch-mlir/python
Dixin Zhou 8f52f5a4ed
[Fx Importer] fix mutation importer with non persistent buffer (#3798)
A non-persistent buffer will not be a part of this module’s
`state_dict`. Hence when setting `experimental_support_mutation=True`
and have non-persistent buffer, the current fx importer will fail to
retrieve a value from `state_dict` and produce `torch.constant.none` to
represent the buffer. This fix get value of non-persistent buffer from
the module's `constants`.

---------

Co-authored-by: Dixin Zhou <dzhou@vdi-ahddp-020.dhcp.mathworks.com>
2024-11-01 02:20:32 +08:00
..
torch_mlir [Fx Importer] fix mutation importer with non persistent buffer (#3798) 2024-11-01 02:20:32 +08:00
CMakeLists.txt Redefine TorchMLIRPythonModules to avoid building empty libraries. (#3711) 2024-09-13 10:41:34 -07:00
TorchMLIRModule.cpp [FxImporter] Fix sympy_int_to_int utility (#3657) 2024-08-26 09:31:17 -07:00