generative-models icon indicating copy to clipboard operation
generative-models copied to clipboard

Weight sharing

Open omg777 opened this issue 6 years ago • 0 comments

Hi, Can you explain why multiply 0.5 from gradient ?

    # Average the gradients
    for p in D_shared.parameters():
        p.grad.data = 0.5 * p.grad.data

omg777 avatar Aug 23 '18 16:08 omg777