pytorch_sentiment_rnn icon indicating copy to clipboard operation
pytorch_sentiment_rnn copied to clipboard

The test loss does not change

Open aalesar opened this issue 7 years ago • 0 comments

After fixing this error: Traceback (most recent call last): File "train.py", line 344, in exp.train() File "train.py", line 327, in train loss = self.train_batch(i) File "train.py", line 304, in train_batch coeff = clip_gradient(self.mdl, self.args.clip_norm) File "train.py", line 36, in clip_gradient modulenorm = p.grad.data.norm() AttributeError: 'NoneType' object has no attribute 'data', by checking if p.grad is not None before , the test loss would change only slightly, but still is 0.901449918747 after 30 epochs, also I'm using cpu and not gpu. Do you have any thoughts?

aalesar avatar Jun 21 '17 09:06 aalesar