diff --git a/tfjs-node/README.md b/tfjs-node/README.md index 55030ddb306..4b7e6e15f7f 100644 --- a/tfjs-node/README.md +++ b/tfjs-node/README.md @@ -72,10 +72,10 @@ Before executing any TensorFlow.js code, import the node package: ```js // Load the binding -import * as tf from '@tensorflow/tfjs-node'; +const tf = require('@tensorflow/tfjs-node'); // Or if running with GPU: -import * as tf from '@tensorflow/tfjs-node-gpu'; +const tf = require('@tensorflow/tfjs-node-gpu'); ``` Note: you do not need to add the `@tensorflow/tfjs` package to your dependencies or import it directly.