xlnstorch.LNSTensor.requires_grad

xlnstorch.LNSTensor.requires_grad#

property LNSTensor.requires_grad: bool#

Returns whether the LNSTensor requires gradients.

Returns:

True if the LNSTensor requires gradients, False otherwise.

Return type:

bool