thuml / Autoformer

About Code release for "Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting" (NeurIPS 2021), https://arxiv.org/abs/2106.13008
MIT License
2k stars 429 forks source link

内存问题 #123

Closed zxc262403 closed 1 year ago

zxc262403 commented 1 year ago

image 您好,如上图所见,exp.tarin()中return了self.model,而在run.py中却并没有变量去接收,这样是不是可能造成内存上的问题呢?

wuhaixu2016 commented 1 year ago

您好,python有自动的内存回收机制,我觉得不会占用很多。不过为了保证代码的规范,我们在最近的commit中已经删去了返回值,感谢您的建议!