From 12f9b41fa8f90dba4b34d86b0398b5687f078ab7 Mon Sep 17 00:00:00 2001 From: qwertyforce Date: Sat, 2 May 2020 09:45:15 +0300 Subject: [PATCH] [tfjs-node] fix import in README.md Node.js doesn't support import * . --- tfjs-node/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.