megengine.Parameter.requires_grad

property Parameter.requires_grad

Returns a bool indicates whether the Tensor requires gradient.