wekws icon indicating copy to clipboard operation
wekws copied to clipboard

Questions about optimizer.zero_grad()

Open chmod740 opened this issue 4 years ago • 1 comments

Hello, this repository is a very amazing project about KWS. When I was reading the source code, I noticed that in the training stage, when optimizer.step() is called, optimizer.zero_grad() is not called, there are some differences with other projects I've seen before, and I'm wondering if this is a special trick or some other reason. I'm very much looking forward to your reply.

chmod740 avatar May 27 '22 16:05 chmod740

It's a bug, could you help to make a PR to fix the problem?

robin1001 avatar May 29 '22 01:05 robin1001