Skip to content

Commit

Permalink
Complete the missing backticks in the comments (huggingface#2469)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongmengning authored Sep 11, 2024
1 parent e326121 commit 13b2a8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions candle-core/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ where
/// [4., 5.]
/// ]);
/// # Ok::<(), candle_core::Error>(())
/// ```
fn i(&self, index: T) -> Result<Tensor, Error> {
self.index(&[index.into()])
}
Expand Down Expand Up @@ -202,6 +203,7 @@ where
/// [4., 5.]
/// ]);
/// # Ok::<(), candle_core::Error>(())
/// ```
fn i(&self, (a,): (A,)) -> Result<Tensor, Error> {
self.index(&[a.into()])
}
Expand All @@ -227,6 +229,7 @@ where
/// assert_eq!(c.shape().dims(), &[2]);
/// assert_eq!(c.to_vec1::<f32>()?, &[1., 4.]);
/// # Ok::<(), candle_core::Error>(())
/// ```
fn i(&self, (a, b): (A, B)) -> Result<Tensor, Error> {
self.index(&[a.into(), b.into()])
}
Expand Down

0 comments on commit 13b2a8a

Please sign in to comment.