Last active
April 5, 2018 21:41
-
-
Save zaidalyafeai/6ed68f60d38f4714c39e0f7b39505794 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const output = tf.oneHot(tf.tensor1d([0,1,0]), 2); | |
//the output will be [[1, 0],[0, 1],[1, 0]] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment