Complete the missing backticks in the comments (#2469)

This commit is contained in:
hongmengning
2024-09-11 22:37:05 +08:00
committed by GitHub
parent e3261216b1
commit 13b2a8a4a0

View File

@ -167,6 +167,7 @@ where
/// [4., 5.]
/// ]);
/// # Ok::<(), candle_core::Error>(())
/// ```
fn i(&self, index: T) -> Result<Tensor, Error> {
self.index(&[index.into()])
}
@ -202,6 +203,7 @@ where
/// [4., 5.]
/// ]);
/// # Ok::<(), candle_core::Error>(())
/// ```
fn i(&self, (a,): (A,)) -> Result<Tensor, Error> {
self.index(&[a.into()])
}
@ -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()])
}