November 2019
Intermediate to advanced
296 pages
7h 52m
English
The CPU backend is the most basic backend because of its colossal availability and universality. Kernel operations are implemented in the JavaScript program so that it can be executed wherever TensorFlow.js can be run. It is simple and easy to create a new kernel operation in this backend. However, as a tradeoff, the performance of this implementation cannot be said to be competitive by any standard. The whole execution runs on a single thread. There is no benefit of hardware acceleration. The available resource is limited by the runtime of JavaScript. In general, the CPU backend should not be used in a production-level application.
Before we talk about CPU backend implementation, let's take a look at ...
Read now
Unlock full access