summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaurent <laurent.mazare@gmail.com>2023-06-28 21:10:54 +0100
committerlaurent <laurent.mazare@gmail.com>2023-06-28 21:10:54 +0100
commit46c07b924c90dc1fb6ff2d432e6fe16c3da09d72 (patch)
treeec86d034c9c1285d5b818ad27fbc70c36b785c61
parent2ae368e98eee085e5ceb2371c4271b39279f0cec (diff)
downloadcandle-46c07b924c90dc1fb6ff2d432e6fe16c3da09d72.tar.gz
candle-46c07b924c90dc1fb6ff2d432e6fe16c3da09d72.tar.bz2
candle-46c07b924c90dc1fb6ff2d432e6fe16c3da09d72.zip
Tweak some comment.
-rw-r--r--candle-core/src/cpu_backend.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-core/src/cpu_backend.rs b/candle-core/src/cpu_backend.rs
index 990a4b70..7409a90a 100644
--- a/candle-core/src/cpu_backend.rs
+++ b/candle-core/src/cpu_backend.rs
@@ -397,7 +397,7 @@ impl CpuStorage {
}
pub(crate) fn divide_by_sum_over_dim(&mut self, shape: &Shape, dim: usize) -> Result<()> {
- // [self] stores data in a contiguous way.
+ // [self] stores data in a contiguous way starting at offset 0.
let dims = shape.dims();
let elem_per_slice = dims[dim];
let prod_pre_dim = dims[..dim].iter().product();