Advertisement
Guest User

Untitled

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