Aliases in torch#
Created On: Jul 22, 2025 | Last Updated On: Jul 22, 2025
The following are aliases in torch
to their counterparts in the nested namespaces
in which they are defined. Feel free to use either the top-level version in torch
(e.g. torch.broadcast_tensors()
) or the nested version torch.functional.broadcast_tensors()
.
Returns a 1-dimensional view of each input tensor with zero dimensions. |
|
Returns a 2-dimensional view of each input tensor with zero dimensions. |
|
Returns a 3-dimensional view of each input tensor with zero dimensions. |
|
Create a block diagonal matrix from provided tensors. |
|
Similar to |
|
Broadcasts the given tensors according to Broadcasting semantics. |
|
Do cartesian product of the given sequence of tensors. |
|
Computes batched the p-norm distance between each pair of the two collections of row vectors. |
|
Returns the matrix product of the 2-D tensors. |
|
Sums the product of the elements of the input |
|
Computes the LU factorization of a matrix or batches of matrices |
|
Creates grids of coordinates specified by the 1D inputs in attr:tensors. |
|
Returns the matrix norm or vector norm of a given tensor. |
|
Splits the tensor into chunks. |
|
Short-time Fourier transform (STFT). |
|
Returns a contraction of a and b over multiple dimensions. |
|
Returns the unique elements of the input tensor. |
|
Eliminates all but the first element from every consecutive group of equivalent elements. |
|
Converts a tensor of flat indices into a tuple of coordinate tensors that index into an arbitrary tensor of the specified shape. |