mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 18:28:24 +00:00
(hotfix) fix the doc test for indexer (#2970)
This commit is contained in:
@ -226,8 +226,8 @@ where
|
||||
/// assert_eq!(c.to_vec1::<f32>()?, &[1., 4.]);
|
||||
///
|
||||
/// let d = a.i((2.., ..))?;
|
||||
/// assert_eq!(c.shape().dims(), &[2]);
|
||||
/// assert_eq!(c.to_vec1::<f32>()?, &[1., 4.]);
|
||||
/// assert_eq!(d.shape().dims(), &[1, 3]);
|
||||
/// assert_eq!(d.to_vec2::<f32>()?, &[[6., 7., 8.]]);
|
||||
/// # Ok::<(), candle_core::Error>(())
|
||||
/// ```
|
||||
fn i(&self, (a, b): (A, B)) -> Result<Tensor, Error> {
|
||||
|
Reference in New Issue
Block a user