|
|
using | FunctionType = std::function< Output(Input)> |
| |
|
using | InputType = Input |
| |
|
using | OutputType = Output |
| |
|
using | InputBatchType = std::vector< Input > |
| |
|
using | OutputBatchType = std::vector< Output > |
| |
|
|
| Lambda (FunctionType function) |
| | Constructs the Lambda from the given function object.
|
| |
|
OutputType | apply (InputType input) override |
| | Applies the user-provided function object to the input.
|
| |
|
std::vector< Output > | apply_batch (std::vector< Input > input_batch) override |
| | Applies the transformation over the entire input_batch.
|
| |
template<typename Input, typename Output = Input>
class torch::data::transforms::Lambda< Input, Output >
Definition at line 36 of file lambda.h.
The documentation for this class was generated from the following file:
- torch/csrc/api/include/torch/data/transforms/lambda.h