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.