Open DillonZChen opened 6 months ago
Hi, thanks for opening an issue. I've prepared a fix (which works basically the same way as your workaround), and it will be released once have more changes implemented (hopefully soon). Will keep the issue open till then.
Hi, this should be fixed in the latest version (0.7.14). Could you please confirm it works for you now? Thanks
Hi Lukas,
I can confirm it works perfectly now. Thanks
Describe the bug
As from the title, saving a
state_dict
with torch causes an errorSteps to reproduce the behavior
Assuming torch is loaded and we have a (trained) model initialised by
model = template.build(settings)
, the error occurs with the following codeExpected behavior
The code does not cause a pickling error.
Environment
No response
Additional context
I have an easy workaround which does not seem to cause any issues by converting the strings into Python strings
I don't seem to have any unexpected behaviour while doing this, e.g. loaded models have the same predictions.