mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Tweak some comment.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user