ncdl.LatticeTensor.detach

LatticeTensor.detach() LatticeTensor

Analog of tensor.detach(), returns a new LatticeTensor that is the same as the input, but detached from the computational graph.

Returns:

Detached lattice tensor.