mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 02:58:50 +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.]);
|
/// assert_eq!(c.to_vec1::<f32>()?, &[1., 4.]);
|
||||||
///
|
///
|
||||||
/// let d = a.i((2.., ..))?;
|
/// let d = a.i((2.., ..))?;
|
||||||
/// assert_eq!(c.shape().dims(), &[2]);
|
/// assert_eq!(d.shape().dims(), &[1, 3]);
|
||||||
/// assert_eq!(c.to_vec1::<f32>()?, &[1., 4.]);
|
/// assert_eq!(d.to_vec2::<f32>()?, &[[6., 7., 8.]]);
|
||||||
/// # Ok::<(), candle_core::Error>(())
|
/// # Ok::<(), candle_core::Error>(())
|
||||||
/// ```
|
/// ```
|
||||||
fn i(&self, (a, b): (A, B)) -> Result<Tensor, Error> {
|
fn i(&self, (a, b): (A, B)) -> Result<Tensor, Error> {
|
||||||
|
Reference in New Issue
Block a user