xlnstorch.LNSTensor.grad

Contents

xlnstorch.LNSTensor.grad#

property LNSTensor.grad: LNSTensor#

The gradient of the LNSTensor, if it has been computed.

Returns:

The gradient as an LNSTensor computed by PyTorch’s autograd.

Return type:

LNSTensor or None