clab / dynet

DyNet: The Dynamic Neural Network Toolkit
Apache License 2.0
3.43k stars 703 forks source link

Free memory for the correct variable #1627

Closed kwalcock closed 3 years ago

kwalcock commented 3 years ago

Otherwise, memory of project_scratch is leaking and gradient_norm_scratch use will cause problems.

neubig commented 3 years ago

Thank you!

kwalcock commented 3 years ago

Likewise!