def zero_grad()

in check.py [0:0]


def zero_grad(variables):
    for variable in variables:
        variable.grad.zero_()