Introduction
Machine learning sounds like magic until you see the machinery: numbers flow through operations, a model adjusts its parameters, and error goes down. TensorFlow, released by Google in 2015, is the library that packages that machinery: it represents data as tensors, multi-dimensional arrays, and gives you the tools to build, train, and ship models, from a laptop experiment to a phone app.
Tensors, Keras, and the road to production
TensorFlow rests on a few distinctive ideas:
Tensors first : data is a tensor, an array with shape and type, and every operation, from addition to a neural network layer, works on tensors.
Keras, the friendly front door : the high-level Keras API lets you stack layers into a model in a few lines, while TensorFlow underneath handles the maths.
Eager by default, graphs when needed : run operations immediately while experimenting, then compile a model into an efficient graph for training and serving.
An ecosystem around the model : TensorFlow Lite runs models on…