Skip to content

Commit

Permalink
clip
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Feb 19, 2024
1 parent 6e0adf2 commit d610326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/src/tensor/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
}
Expand Down

0 comments on commit d610326

Please sign in to comment.