We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a81a8ed commit 9af8e30Copy full SHA for 9af8e30
crates/burn-tensor/src/tensor/api/base.rs
@@ -895,8 +895,8 @@ where
895
size,
896
);
897
assert!(
898
- dim < size,
899
- "Expected: dim < size: found dim={}, size={}",
+ dim < self.shape().num_dims(),
+ "Expected: dim < num_dims: found dim={}, num_dims={}",
900
dim,
901
902
crates/burn-tensor/src/tensor/indexing/mod.rs
@@ -108,7 +108,7 @@ where
108
/// ## Arguments
109
///
110
/// * `idx` - The dimension index to canonicalize.
111
-/// * `rank` - The size of the dimension.
+/// * `rank` - The number of dimensions.
112
/// * `wrap_scalar` - If true, pretend scalars have rank=1.
113
114
/// ## Returns
0 commit comments