A Collation for Example<Tensor, NoTarget> types that stacks all data tensors into one tensor.
More...
#include <stack.h>
Public Member Functions | |
| TensorExample | apply_batch (std::vector< TensorExample > examples) override |
Public Member Functions inherited from torch::data::transforms::BatchTransform< InputBatch, OutputBatch > | |
| virtual OutputBatch | apply_batch (InputBatch input_batch)=0 |
Applies the transformation to the given input_batch. | |
Additional Inherited Members | |
Public Types inherited from torch::data::transforms::BatchTransform< InputBatch, OutputBatch > | |
| using | InputBatchType = InputBatch |
| using | OutputBatchType = OutputBatch |
A Collation for Example<Tensor, NoTarget> types that stacks all data tensors into one tensor.
1.8.11