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. ...