WebGPU – a new standard for accelerated graphics and computations

WebGPU is a new web standard for accelerated graphics processing and computation. It provides a brand-new JavaScript API that allows us to flexibly achieve higher-performance computing. Unlike WebGL, this does not just port across existing native APIs; instead, it is based on Vulkan, Metal, and so on. WebGPU was originally designed to replace the WebGL API but WebGL is much more popular than WebGPU nowadays; TensorFlow.js primarily supports WebGL. But considering the fact that more and more web browsers support WebGPU implementation, WebGPU is the major platform for hardware acceleration in web technologies.

The kernel function of the WebGPU backend is similar to WebGL functions. ...

Get Hands-On Machine Learning with TensorFlow.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.