Skip to content

Commit

Permalink
improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtremblay committed Nov 28, 2024
1 parent 42fb09d commit 244ce76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/cubecl-core/src/frontend/container/tensor/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ mod metadata {
unexpanded!()
}

/// Obtain the coordinate corresponding to the given `index` of input at dimension `dim`.
/// Obtain the coordinate corresponding to the given `index` of the tensor at dimension `dim`.
///
/// A coordinate is a list of indices corresponding to the multi-dimensional position of an element in the tensor.
/// The `dim` element in a coordinate is the position along the `dim` dimension of the tensor.
pub fn coordinate<I: Index, D: Index>(&self, _index: I, _dim: D) -> u32 {
unexpanded!()
}
Expand Down

0 comments on commit 244ce76

Please sign in to comment.