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

No module named 'reformer_pytorch' #188

Closed lzb0854 closed 1 year ago

lzb0854 commented 1 year ago

Traceback (most recent call last): File "E:/时间序列预测/Autoformer-main/Autoformer-main/run.py", line 6, in from exp.exp_main import Exp_Main File "E:\时间序列预测\Autoformer-main\Autoformer-main\exp\exp_main.py", line 9, in from models import Informer, Autoformer, Transformer, Reformer File "E:\时间序列预测\Autoformer-main\Autoformer-main\models\Informer.py", line 8, in from layers.SelfAttention_Family import FullAttention, ProbAttention, AttentionLayer File "E:\时间序列预测\Autoformer-main\Autoformer-main\layers\SelfAttention_Family.py", line 12, in from reformer_pytorch import LSHSelfAttention ModuleNotFoundError: No module named 'reformer_pytorch'

显示没有这个包,怎么解决呢

wuhaixu2016 commented 1 year ago

你好,可以直接安装pip install reformer_pytorch