Skip to content

Commit

Permalink
clip
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Feb 16, 2024
1 parent 3699ce1 commit e6db704
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 e6db704

Please sign in to comment.