Skip to content

Commit

Permalink
doc: Fix diag() example to make is less confusing. (#7113)
Browse files Browse the repository at this point in the history
Fixed an example which I found confusing because there's a 6 in the left column (at position [3][0][3][0]), until I noticed the typo, where the 6 is repeated instead of a 7.
  • Loading branch information
robhybrid committed Nov 29, 2022
1 parent 7cf8aa4 commit 1073979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/diag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {op} from './operation';
* tf.diag(x).print()
* ```
* ```js
* const x = tf.tensor2d([1, 2, 3, 4, 5, 6, 6, 8], [4, 2])
* const x = tf.tensor2d([1, 2, 3, 4, 5, 6, 7, 8], [4, 2])
*
* tf.diag(x).print()
* ```
Expand Down

0 comments on commit 1073979

Please sign in to comment.