
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@tensorflow/tfjs-backend-webgl
Advanced tools
This package implements a GPU accelerated WebGL backend for 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 WebGL backend to the global backend registry.
import '@tensorflow/tfjs-backend-webgl';
<!-- Import @tensorflow/tfjs-core -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script>
<!-- Adds the WebGL backend to the global backend registry -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl"></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 WebGL backend to the global backend registry -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@2.0.0-rc.4/dist/tf-backend-webgl.es2017.js"></script>
@tensorflow/tfjs-backend-cpu is a CPU-based backend for TensorFlow.js. It is generally slower than the WebGL backend but can be used in environments where WebGL is not available or desired.
@tensorflow/tfjs-node is a Node.js backend for TensorFlow.js, providing high-performance machine learning computations on the server-side. It leverages the TensorFlow C library for accelerated performance.
gpu.js is a JavaScript library for GPU-accelerated computations. While it is not specifically designed for machine learning, it can be used to perform general-purpose computations on the GPU, similar to the WebGL backend of TensorFlow.js.
FAQs
GPU accelerated WebGL backend for TensorFlow.js
The npm package @tensorflow/tfjs-backend-webgl receives a total of 234,634 weekly downloads. As such, @tensorflow/tfjs-backend-webgl popularity was classified as popular.
We found that @tensorflow/tfjs-backend-webgl 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.