![]() |
VOOZH | about |
What is a Tensor Processing Unit?
With machine learning gaining its relevance and importance everyday, the conventional microprocessors have proven to be unable to effectively handle it, be it training or neural network processing. GPUs, with their highly parallel architecture designed for fast graphic processing proved to be way more useful than CPUs for the purpose, but were somewhat lacking. Therefore, in order to combat this situation, Google developed an AI accelerator integrated circuit which would be used by its TensorFlow AI framework. This device has been named TPU (Tensor Processing Unit). The chip has been designed for Tensorflow Framework.What is TensorFlow Framework?
TensorFlow is an open source library developed by Google for its internal use. Its main usage is in machine learning and dataflow programming. TensorFlow computations are expressed as stateful dataflow graphs. The name TensorFlow derives from the operations that such neural networks perform on multidimensional data arrays. These arrays are referred to as "tensors". TensorFlow is available for Linux distributions, Windows, and MacOS.TPU Architecture
The following diagram explains the physical architecture of the units in a TPU:| TPU Instruction | Function |
|---|---|
| Read_Host_Memory | Read data from memory |
| Read_Weights | Read weights from memory |
| MatrixMultiply/Convolve | Multiply or convolve with the data and weights, accumulate the results |
| Activate | Apply activation functions |
| Write_Host_Memory | Write result to memory |
Advantages of TPU
The following are some notable advantages of TPUs:When to use a TPU
The following are the cases where TPUs are best suited in machine learning: