If the user requests zero_grad(set_to_none=True) followed by a backward pass, .grad s are guaranteed to be None for params that did not receive a gradient.
確定! 回上一頁