TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.functional.diagonal_copy

tensorplay.functional.diagonal_copy(input, offset=0, dim1=0, dim2=1)[source]

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

On this page

Ask DeepWiki