timeseriesAI / tsai

Time series Timeseries Deep Learning Machine Learning Python Pytorch fastai | State-of-the-art Deep Learning library for Time Series and Sequences in Pytorch / fastai
https://timeseriesai.github.io/tsai/
Apache License 2.0
5.3k stars 661 forks source link

Cannot save learner in pickle format for Time series classification with Transformer (TST) model #833

Open TanjinToma opened 1 year ago

TanjinToma commented 1 year ago

learn.save_all(path='export', dls_fname='dls', model_fname='model', learner_fname='learner') The above command shows the following error for the TST model TypeError: cannot pickle 'code' object

angiebao commented 8 months ago

I have exactly the same problem when using learn.export learn.export(f"./models/{learner_fname}.pkl")