Traceback (most recent call last):


 "model_manager.py", line 283, in <module>

helper.test()


 "model_manager.py", line 119, in test

self.trainer.test(self.module)


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 748, in test

results = self.__test_given_model(model, test_dataloaders)


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 813, in __test_given_model

results = self.fit(model)


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 459, in fit

results = self.accelerator_backend.train()


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/accelerators/gpu_accelerator.py", line 61, in train

self.trainer.train_loop.setup_training(model)


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/trainer/training_loop.py", line 174, in setup_training

self.trainer.checkpoint_connector.restore_weights(model)


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 75, in restore_weights

self.restore(self.trainer.resume_from_checkpoint, on_gpu=self.trainer.on_gpu)


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 107, in restore

self.restore_model_state(model, checkpoint)


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 128, in restore_model_state

model.load_state_dict(checkpoint['state_dict'])


 "/data/anaconda3/envs/aidio2/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1044, in load_state_dict

raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for L_WavenetLSTMClassifier:

Traceback (most recent call last):


 "train.py", line 29, in <module>

rnn = RNN(n_letters, n_hidden, n_categories)


 "C:\Users\YingJie\Desktop\term8\AI\week5\lstm\model.py", line 12, in __init__

self.i2o = nn.Linear(-1, output_size)


 "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\linear.py", line 46, in __init__

self.reset_parameters()


 "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\linear.py", line 49, in reset_parameters

stdv = 1. / math.sqrt(self.weight.size(1))
RuntimeError: dimension out of range (expected to be in range of [-1, 0], but got 1)
