xlnstorch.LNSTensor.detach

xlnstorch.LNSTensor.detach#

LNSTensor.detach()#

Returns a new LNSTensor that is detached from the current computation graph. The returned tensor will not require gradients.

Returns:

A new LNSTensor that is detached from the current computation graph.

Return type:

LNSTensor