A BatchTransform
that applies a user-provided functor to a batch.
More...
#include <lambda.h>
Public Types | |
using | FunctionType = std::function< OutputBatchType(InputBatchType)> |
Public Types inherited from torch::data::transforms::BatchTransform< Input, Output > | |
using | InputBatchType = Input |
using | OutputBatchType = Output |
Public Member Functions | |
BatchLambda (FunctionType function) | |
Constructs the BatchLambda from the given function object. | |
OutputBatchType | apply_batch (InputBatchType input_batch) override |
Applies the user-provided function object to the input_batch . | |
A BatchTransform
that applies a user-provided functor to a batch.