op_dataset
OpDataset
¶
Bases: Dataset
A wrapper for datasets which allows operators to be applied to them in a pipeline.
This class should not be directly instantiated by the end user. The fe.Pipeline will automatically wrap datasets within an Op dataset as needed.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset |
Dataset
|
The base dataset to wrap. |
required |
ops |
List[NumpyOp]
|
A list of ops to be applied after the base |
required |
mode |
str
|
What mode the system is currently running in ('train', 'eval', 'test', or 'infer'). |
required |
output_keys |
Optional[Set[str]]
|
What keys can be produced from pipeline. If None, all keys will be considered. |
None
|
deep_remainder |
bool
|
Whether data which is not modified by Ops should be deep copied or not. This argument is used to help with RAM management, but end users can almost certainly ignore it. |
True
|
shuffle |
bool
|
Whether to shuffle batched datasets every epoch. |
True
|