@tensorflow/tfjs-backend-cpu
TypeScript icon, indicating that this package has built-in type declarations

4.22.0 • Public • Published

Usage

This package implements a JavaScript based CPU backend to TensorFlow.js.

Importing the backend

Note: this backend is included by default in @tensorflow/tfjs.

Via NPM

// Import @tensorflow/tfjs-core
import * as tf from '@tensorflow/tfjs-core';
// Adds the CPU backend to the global backend registry.
import '@tensorflow/tfjs-backend-cpu';

Via a script tag

<!-- Import @tensorflow/tfjs-core -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script>

<!-- Adds the CPU backend to the global backend registry -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu"></script>

You can also get ES2017 code using the following links

<!-- Import @tensorflow/tfjs-core -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@2.0.0-rc.4/dist/tf-core.es2017.js"></script>

<!-- Adds the CPU backend to the global backend registry -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@2.0.0-rc.4/dist/tf-backend-cpu.es2017.js"></script>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.22.036,284latest
4.22.0-rc.014next

Version History

VersionDownloads (Last 7 Days)Published
4.22.036,284
4.22.0-rc.014
4.21.010,662
4.21.0-rc.01
4.20.015,341
4.20.0-rc.00
4.19.08,381
4.19.0-rc.01
4.18.01,108
4.18.0-rc.00
4.17.04,735
4.17.0-rc.00
4.16.02,513
4.16.0-rc.00
4.15.01,273
4.15.0-rc.00
4.14.0553
4.14.0-rc.00
4.13.0558
4.13.0-rc.00
4.12.0618
4.12.0-rc.00
4.11.08,019
4.10.01,083
4.9.0468
4.8.0235
4.7.0104
4.6.0236
4.5.0488
4.4.03,830
4.2.02,925
4.1.0667
4.0.0493
3.21.075,517
3.20.08,097
3.19.01,757
3.18.012,308
3.17.05
3.16.0162
3.15.0157
3.14.01,771
3.13.02,076
3.12.0427
3.11.01,148
3.10.029
3.9.0237
3.8.0105
3.7.077
3.6.01,042
3.5.054
3.4.0193
3.3.02,731
3.2.0304
2.8.61,725
3.1.0328
3.0.039
2.8.518
3.0.0-rc.10
2.8.44
2.8.35
3.0.0-rc.00
2.8.22
2.7.02,626
2.6.0109
2.5.01
2.4.0102
2.3.026
2.1.039
2.0.130
2.0.03,140
2.0.0-rc.40
2.0.0-rc.30
2.0.0-rc.10

Package Sidebar

Install

npm i @tensorflow/tfjs-backend-cpu

Weekly Downloads

217,524

Version

4.22.0

License

Apache-2.0

Unpacked Size

10.6 MB

Total Files

444

Last publish

Collaborators

  • delhibabu
  • laxma4675
  • fengwuyao
  • linchan
  • pyu10055
  • caisq
  • annxingyuan
  • linazhao128
  • mattsoulanille
  • jinjingforever