TensorFlow’s Sequential API helps the person to stack layers one on high of one other, simply creating linear fashions, the place the enter of every layer is at all times the output of the earlier one. However what occurs when your mannequin must deal with a number of inputs or outputs, shared layers, or non-linear connections? In these situations, TensorFlow’s Useful API permits to construct extra superior, versatile, and customizable fashions, giving the person the facility to design the complicated architectures talked about above with ease.
This text will clarify:
- What the Useful API is
- The way to construct a easy mannequin with the Useful API
TensorFlow’s Useful API is a approach to create fashions the place layers are related like a community graph, not simply stacked linearly like within the Sequential API. Think about constructing with LEGO bricks: whereas the Sequential API would simply enable us to stack blocks one on high of one other, the Useful API permits us to assemble bridges, towers, and paths connecting totally different areas.