-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
E:\Anaconda\envs\aypytorch\python.exe "E:/Deep Learning/ayproject/Time Series Forecasting/Informer2020-main/Informer2020-main/main_informer.py" --model --data --root_path <root_path> --data_path <data_path> --features --target --freq --checkpoints --seq_len 96 --label_len 48 --pred_len 24 --enc_in 7 --dec_in 7 --c_out 7 --d_model 512 --n_heads 8 --e_layers 2 --d_layers 1 --s_layers 3,2,1 --d_ff 2048 --factor 5 --padding 0 --distil --dropout 0.05 --attn --embed --activation --output_attention --do_predict --mix --cols --itr 2 --num_workers 0 --train_epochs 6 --batch_size 32 --patience 3 --des --learning_rate 0.0001 --loss --lradj --use_amp --inverse --use_gpu <use_gpu> --gpu 0 --use_multi_gpu --devices 0,1,2,3
Args in experiment:
Namespace(model='', data='', root_path='<root_path>', data_path='<data_path>', features='', target='', freq='>', checkpoints='', seq_len=96, label_len=48, pred_len=24, enc_in=7, dec_in=7, c_out=7, d_model=512, n_heads=8, e_layers=2, d_layers=1, s_layers=[3, 2, 1], d_ff=2048, factor=5, padding=0, distil=False, dropout=0.05, attn='', embed='', activation='', output_attention=True, do_predict=True, mix=False, cols=[''], num_workers=0, itr=2, train_epochs=6, batch_size=32, patience=3, learning_rate=0.0001, des='', loss='', lradj='', use_amp=True, inverse=True, use_gpu=True, gpu=0, use_multi_gpu=True, devices='0,1,2,3', device_ids=[0, 1, 2, 3], detail_freq='')
Use GPU: cuda:0
Traceback (most recent call last):
File "E:\Deep Learning\ayproject\Time Series Forecasting\Informer2020-main\Informer2020-main\main_informer.py", line 102, in
exp = Exp(args) # set experiments
File "E:\Deep Learning\ayproject\Time Series Forecasting\Informer2020-main\Informer2020-main\exp\exp_informer.py", line 23, in init
super(Exp_Informer, self).init(args)
File "E:\Deep Learning\ayproject\Time Series Forecasting\Informer2020-main\Informer2020-main\exp\exp_basic.py", line 9, in init
self.model = self._build_model().to(self.device)
File "E:\Deep Learning\ayproject\Time Series Forecasting\Informer2020-main\Informer2020-main\exp\exp_informer.py", line 57, in _build_model
model = nn.DataParallel(model, device_ids=self.args.device_ids)
UnboundLocalError: local variable 'model' referenced before assignment