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 a BridgeError when perm is not a permutation of tensor’s axes or when the backend transpose fails.