latest (dev)
Copy
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.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

