Skip to content

Commit

Permalink
chore: adding more examples to the reshape method
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonShin committed Nov 29, 2018
1 parent 8d9b585 commit cbcf0b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/ops/tensor_ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function validateMatrix2D(X: Type2DMatrix<any>): number[] {
*
* @example
* reshape([1, 2, 3, 4, 5, 6], [2, 3]); // [[1, 2, 3], [4, 5, 6]]
* reshape([1, 2, 3, 4, 5, 6], [2, 3, 1]); // [[[1], [2], [3]], [[4], [5], [6]]]
*
* @param array - Target array
* @param sizes - New array shape to resize into
Expand Down

0 comments on commit cbcf0b3

Please sign in to comment.