Rate this Page

TensorWeakRef#

class torch.utils.weak.TensorWeakRef(tensor)[source]#

Wrapper around a weak ref of a Tensor that handles the _fix_weakref() call required when unwrapping a Tensor weakref.