Introduction to TensorFlow’s Useful API | by Javier Martínez Ojeda | Dec, 2024

Be taught what the Useful API is, and easy methods to construct complicated keras fashions utilizing it

Photograph by Hunter Harritt on Unsplash

TensorFlow’s Sequential API helps the consumer to stack layers one on prime 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 consumer the facility to design the complicated architectures talked about above with ease.

This text will clarify:

  • What the Useful API is
  • Easy methods to construct a easy mannequin with the Useful API

TensorFlow’s Useful API is a approach to create fashions the place layers are linked 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 prime of one other, the Useful API permits us to assemble bridges, towers, and paths connecting totally different areas.