Open KinWaiCheuk opened 3 years ago
In your train.py line 101, you have the gradient clipping after the .backward() and .step() operations.
.backward()
.step()
Shouldn't we put the clip_grad_norm_ in between .backward() and .step()?
clip_grad_norm_
Yeah it definitely should. I'm not sure why I did like that. In practice the gradient was well below the clip value during most of the training though.
In your train.py line 101, you have the gradient clipping after the
.backward()
and.step()
operations.Shouldn't we put the
clip_grad_norm_
in between.backward()
and.step()
?