Skip to main content

permute_native_tensor

Function permute_native_tensor 

Source
pub fn permute_native_tensor(
    tensor: &Tensor,
    perm: &[usize],
) -> Result<Tensor, BridgeError>
Expand description

Permute axes of a native tensor.

ยงErrors

Returns an error when the native permutation fails (a shape or index mismatch, or a backend failure).