Open kb1ooo opened 4 years ago
I have the same problem. Do you find the way to love it?
@lzt-pro yes. Lines 228, 232, 279, 283 change occurrences of .view
to .contiguous().view
I get this error when I change the view to contiguous
(base)a@x86_64-apple-darwin13 RNN-Time-series-Anomaly-Detection-master % python 1_train_predictor.py --data nyc_taxi --filename nyc_taxi.pkl --device cpu
=> Start training from scratch
-----------------------------------------------------------------------------------------
Namespace(augment=True, batch_size=64, bptt=50, clip=10, data='nyc_taxi', device='cpu', dropout=0.2, emsize=32, epochs=400, eval_batch_size=64, filename='nyc_taxi.pkl', log_interval=10, lr=0.0002, model='LSTM', nhid=32, nlayers=2, prediction_window_size=10, pretrained=False, res_connection=False, resume=False, save_fig=False, save_interval=10, seed=1111, teacher_forcing_ratio=0.7, tied=False, weight_decay=0.0001)
-----------------------------------------------------------------------------------------
Traceback (most recent call last):
File "1_train_predictor.py", line 320, in <module>
train(args,model,train_dataset,epoch)
File "1_train_predictor.py", line 235, in train
loss3 = criterion(hids1(args.batch_size,-1), hids2(args.batch_size,-1).detach())
TypeError: 'Tensor' object is not callable
Just trying one of the ECG examples and getting a runtime error. I'm running pytorch 1.5.