View source on GitHub |
Applies fn
that can return any number of examples based on an input.
tfds.transform.apply_do_fn(
fn: Callable[[Any], Iterator[Any]]
) -> ExampleTransformFn
A do_fn can be used for multiple purposes such as augmentations, but also to filter examples.
Arguments | |
---|---|
fn
|
the function that takes an example and outputs 0 or more examples. |
Returns | |
---|---|
function that can be applied to perform a do fn. |