nni icon indicating copy to clipboard operation
nni copied to clipboard

Could not use pickle when saving model using task_generator for ScriptModule

Open t1endat opened this issue 2 years ago • 1 comments

When working with task_genrator for torch.jit.ScriptModule, I found that Model Compression uses pickle to model serialization, but this feature is not supported yet because ScriptModule doesn't have the __getstate__ method. Is there 1 way to avoid this error?

t1endat avatar May 06 '22 09:05 t1endat

Hello @tiendatAI ,could you show us a simple case to reproduce your error? do you mean you have torch.jit.ScriptModule part in your model?

J-shang avatar May 11 '22 02:05 J-shang