Fix reshaping test.

This commit is contained in:
Crozet Sébastien 2020-10-25 16:20:27 +01:00
parent ce7d767d37
commit 8e483a5434
2 changed files with 12 additions and 4 deletions

View File

@ -37,8 +37,12 @@ fn main() {
6, 6,
2, 2,
&[ &[
1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0,
0.0, 0.0, 0.0, 0.0, 1.0, 0.0 0.0, 1.0,
0.0, 0.0,
0.0, 1.0,
0.0, 0.0,
0.0, 0.0,
], ],
); );

View File

@ -861,8 +861,12 @@ where
/// 6, /// 6,
/// 2, /// 2,
/// &[ /// &[
/// 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, /// 1.0, 0.0,
/// 0.0, 0.0, 0.0, 0.0, 1.0, 0.0 /// 0.0, 1.0,
/// 0.0, 0.0,
/// 0.0, 1.0,
/// 0.0, 0.0,
/// 0.0, 0.0,
/// ], /// ],
/// ); /// );
/// let reshaped = dm1.reshape_generic(Dynamic::new(6), Dynamic::new(2)); /// let reshaped = dm1.reshape_generic(Dynamic::new(6), Dynamic::new(2));