Rate this Page

torch.squeeze_copy#

torch.squeeze_copy()#

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