Last active
November 22, 2022 08:43
-
-
Save korakot/22abd6eccac229e9cb9a027b088b50d6 to your computer and use it in GitHub Desktop.
TFJS node.ipynb
This file contains 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
var run_async = async (pf) => { | |
$$.async(); | |
await pf(); | |
$$.done(); | |
}; |
This file contains 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
// in case you want tensorflow | |
sh('npm install @tensorflow/tfjs-node-gpu') | |
var tf = require('@tensorflow/tfjs-node-gpu'); | |
console.log(tf.backend().isUsingGpuDevice); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment