Template Class Transform¶
Defined in File base.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::data::transforms::BatchTransform< std::vector< Input >, std::vector< Output > >
(Template Class BatchTransform)
Class Documentation¶
-
template<typename Input, typename Output>
class Transform : public torch::data::transforms::BatchTransform<std::vector<Input>, std::vector<Output>>¶ A transformation of individual input examples to individual output examples.
Just like a
Dataset
is aBatchDataset
, aTransform
is aBatchTransform
that can operate on the level of individual examples rather than entire batches. The batch-level transform is implemented (by default) in terms of the example-level transform, though this can be customized.