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

PUBLIC: [tf.contrib.data] Standardize transformation functions for use with `Dataset.apply()`.

A transformation function is a function from `Dataset` to `Dataset`, and several APIs now return transformation functions, making them easier to use with `Dataset.apply()`.

This is a breaking change that modifies the semantics of `tf.contrib.data.Dataset.apply()` to remove the `args` and `kwargs` arguments; and `tf.contrib.data.group_by_window()`, `tf.contrib.data.rejection_resample()`, and `tf.contrib.data.sloppy_interleave()`, to remove the `dataset` argument. Instead the latter functions return a transformation function (from `Dataset` to `Dataset`).

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