# tensorplay.functional.diagonal_copy Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.diagonal_copy.html ```python tensorplay.functional.diagonal_copy(input, offset=0, dim1=0, dim2=1) ``` Performs the same operation as tensorplay.diagonal(), but all output tensors are freshly created instead of aliasing the input.