|
pulsatrix
|
Eager, ordered list of Transforms applied in sequence – pulsatrix's analogue of torchvision.transforms.Compose. Deliberately simple: no fusion/graph, matching Compose's own upstream design; unlike Python, there is no GIL here for that simplicity to cost anything. More...
#include <transform.hpp>


Public Member Functions | |
| Compose (std::vector< std::shared_ptr< Transform > > steps) | |
| Sample | apply (Sample sample) const override |
| Applies this transform to a sample. | |
Public Member Functions inherited from pulsatrix::Transform | |
| virtual | ~Transform ()=default |
Eager, ordered list of Transforms applied in sequence – pulsatrix's analogue of torchvision.transforms.Compose. Deliberately simple: no fusion/graph, matching Compose's own upstream design; unlike Python, there is no GIL here for that simplicity to cost anything.
|
inlineexplicit |
Applies this transform to a sample.
| sample | Input sample. |
Implements pulsatrix::Transform.