tf.compat.v1.data.experimental.map_and_batch_with_legacy_function

View source on GitHub

Fused implementation of map and batch. (deprecated)

tf.compat.v1.data.experimental.map_and_batch_with_legacy_function(
    map_func, batch_size, num_parallel_batches=None, drop_remainder=False,
    num_parallel_calls=None
)

Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use `tf.data.experimental.map_and_batch()

NOTE: This is an escape hatch for existing uses of map_and_batch that do not work with V2 functions. New uses are strongly discouraged and existing uses should migrate to map_and_batch as this method will not be removed in V2.

Args:

Returns:

A Dataset transformation function, which can be passed to tf.data.Dataset.apply.

Raises: