Commit b581eba9 authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

[tf.data] Compute short circuit indices at DatasetOpKernel construction time.

This change optimizes the creation of nested datasets (e.g. inside `Dataset.interleave()`) that use short-circuitable functional transformations (e.g. `Dataset.map()`), by instantiating the function once at kernel construction time to determine the short-circuit indices, and caching the result in the kernel.

PiperOrigin-RevId: 237073994
parent e70b1310
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment