kd.data.py#
PyGrain public API.
Symbols#
Class#
Adds constant elements. |
|
Cast an element to the specified dtype. |
|
Generic loader of arbitrary grain data source. |
|
Base class to implement a data source. |
|
Base class for elementwise transforms. |
|
Modify the elements by keeping xor dropping and/or renaming and/or copying. |
|
Gathers entries along a single dimension. |
|
HuggingFace loader. |
|
Json pipeline. |
|
Create a dataset mixture. |
|
Abstract base class to construct PyGrain data pipeline. |
|
Einops rearrange on a single element. |
|
Resizes an image. |
|
Transform which select a subset of the dataset. |
|
Base TFDS loader. |
|
Flatten any tree-structured elements. |
|
Map the value range of an element. |