From e6db704b37449c6521c34d785464785322b4ed25 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Fri, 16 Feb 2024 17:02:38 +0100 Subject: [PATCH] clip --- data/src/tensor/view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/src/tensor/view.rs b/data/src/tensor/view.rs index 02f45dcf60..29d542eade 100644 --- a/data/src/tensor/view.rs +++ b/data/src/tensor/view.rs @@ -125,7 +125,7 @@ impl<'a> TensorView<'a> { #[inline] pub fn rank(&self) -> usize { match &self.indexing { - Indexing::Prefix(i) => &self.tensor.rank() - i, + Indexing::Prefix(i) => self.tensor.rank() - i, Indexing::Custom { shape, .. } => shape.len(), } }