File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Note: this backend is included by default in `@tensorflow/tfjs`.
1010
1111``` js
1212// Import @tensorflow/tfjs-core
13- import * as tf from ' @tensorflow/tfjs' ;
13+ import * as tf from ' @tensorflow/tfjs-core ' ;
1414// Adds the CPU backend to the global backend registry.
1515import ' @tensorflow/tfjs-backend-cpu' ;
1616```
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Note: this backend is included by default in `@tensorflow/tfjs`.
1010
1111``` js
1212// Import @tensorflow/tfjs-core
13- import * as tf from ' @tensorflow/tfjs' ;
13+ import * as tf from ' @tensorflow/tfjs-core ' ;
1414// Adds the WebGL backend to the global backend registry.
1515import ' @tensorflow/tfjs-backend-webgl' ;
1616```
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ import * as tfc from '@tensorflow/tfjs-core';
3131// No Layers API.
3232```
3333
34+ ** Note** : If you are only importing the Core API, you also need to import a
35+ backend (e.g., [ tfjs-backend-cpu] ( /tfjs-backend-cpu ) ,
36+ [ tfjs-backend-webgl] ( /tfjs-backend-webgl ) , [ tfjs-backend-wasm] ( /tfjs-backend-wasm ) ).
37+
3438For info about development, check out [ DEVELOPMENT.md] ( /DEVELOPMENT.md ) .
3539
3640## For more information
You can’t perform that action at this time.
0 commit comments