Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The test loss does not change #2

Open
aalesar opened this issue Jun 21, 2017 · 0 comments
Open

The test loss does not change #2

aalesar opened this issue Jun 21, 2017 · 0 comments

Comments

@aalesar
Copy link

aalesar commented Jun 21, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant