Rate this Page
★ ★ ★ ★ ★

TensorDictBase.detach#

TensorDictBase.detach_() → Self#

Detach the tensors in the tensordict in-place.

Returns:

self.

Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.