Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Import @tensorflow/tfjs or @tensorflow/tfjs-core
- import * as tf from '@tensorflow/tfjs';
- // Adds the WASM backend to the global backend registry.
- import '@tensorflow/tfjs-backend-wasm';
- // Set the backend to WASM and wait for the module to be ready.
- tf.setBackend('wasm').then(() => main());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement