megengine.Tensor.requires_grad#

property Tensor.requires_grad#

Returns a bool indicates whether the Tensor requires gradient.