Skip to content

Commit

Permalink
Fixe bug in oneHot doc example (tensorflow#1015)
Browse files Browse the repository at this point in the history
DOC
  • Loading branch information
manrajgrover authored and dsmilkov committed May 3, 2018
1 parent bd82d33 commit 9260c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/array_ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export class ArrayOps {
* `offValue` (defaults to 0).
*
* ```js
* tf.oneHot(tf.tensor1d([0, 1]), 3).print();
* tf.oneHot(tf.tensor1d([0, 1], 'int32'), 3).print();
* ```
*
* @param indices `Tensor1D` of indices with dtype `int32`.
Expand Down

0 comments on commit 9260c6f

Please sign in to comment.