View source on GitHub |
A transformation that scans a function across an input dataset. (deprecated)
tf.data.experimental.scan(
initial_state, scan_func
)
This transformation is a stateful relative of tf.data.Dataset.map
.
In addition to mapping scan_func
across the elements of the input dataset,
scan()
accumulates one or more state tensors, whose initial values are
initial_state
.
Returns | |
---|---|
A Dataset transformation function, which can be passed to
tf.data.Dataset.apply .
|