Rate this Page
★ ★ ★ ★ ★

torch.diagonal_copy#

torch.diagonal_copy()#

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