Rate this Page

torch.detach_copy#

torch.detach_copy()#

Performs the same operation as torch.detach(), but all output tensors are freshly created instead of aliasing the input.