apex icon indicating copy to clipboard operation
apex copied to clipboard

Add set_to_none keyword parameter to Optimizer's zero_grad

Open vblagoje opened this issue 3 years ago • 0 comments

Starting with the 1.7.0 release Pytorch has added set_to_none keyword to Optimizer's zero_grad method. It seems apex optimizers already implement this functionality but it would be great if they respected this updated signature as well.

vblagoje avatar Oct 20 '21 13:10 vblagoje