
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
@tensorflow/tfjs-backend-cpu
Advanced tools
This package implements a JavaScript based CPU backend to TensorFlow.js.
Note: this backend is included by default in @tensorflow/tfjs.
// 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';
<!-- 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>
@tensorflow/tfjs-backend-webgl is a backend for TensorFlow.js that allows you to run machine learning models using WebGL for GPU acceleration. It is suitable for environments where GPU resources are available and can significantly speed up tensor operations and model training compared to the CPU backend.
@tensorflow/tfjs-node is a TensorFlow.js backend for Node.js that provides native TensorFlow execution. It leverages the TensorFlow C library for high-performance operations and is suitable for server-side applications where maximum performance is required.
onnxruntime is a high-performance runtime for ONNX (Open Neural Network Exchange) models. It supports multiple execution providers, including CPU and GPU, and is designed to be cross-platform. It can be used as an alternative to TensorFlow.js for running machine learning models in various environments.
FAQs
Vanilla JavaScript backend for TensorFlow.js
The npm package @tensorflow/tfjs-backend-cpu receives a total of 399,326 weekly downloads. As such, @tensorflow/tfjs-backend-cpu popularity was classified as popular.
We found that @tensorflow/tfjs-backend-cpu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.