liveBook · Manning

Tf.data API

The tf.data API is TensorFlow’s API for constructing input pipelines that read, transform, batch, and iterate over data efficiently.

How 2 Manning books explain it

Deep Learning with Python, Third Edition

TensorFlow's input पाइപ്പ്-line API for building efficient data preprocessing and loading pipelines.

How it is used
Builds input pipelines that supply preprocessed batches to model training without loading an entire large image dataset into memory.
How deep it goes
Defines Dataset and works through iteration, batching, mapping, interleaving, and prefetching; focuses on pipeline construction rather than implementation internals.
Examples
Uses batched NumPy vectors, COCO images, IMDb reviews, translation pairs, and sharded text for language-model pretraining.
What you can do after
Build it from scratch with tf.data.Dataset operations, or apply Keras directory loaders to feed datasets into model.fit().

Read how Deep Learning with Python, Third Edition explains tf.data API →

Deep Learning with R, Third Edition

The tf.data API is TensorFlow's API for constructing input pipelines that process and preprocess data efficiently.

How it is used
Builds input pipelines that load and preprocess training data without requiring large datasets to fit in memory.
How deep it goes
Works through dataset construction, mapping, batching, prefetching, caching, and interleaving, but does not explain tf.data internals.
Examples
Shows COCO image batches, IMDb bag-of-words reviews, English-to-Spanish sentence pairs, and interleaved text shards.
What you can do after
Build it from scratch with R/tfdatasets operations to stream, transform, batch, and prefetch model inputs.

Read how Deep Learning with R, Third Edition explains tf.data API →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.