Template Class TensorTransform¶
Defined in File tensor.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::data::transforms::Transform< Example< Tensor, Tensor >, Example< Tensor, Tensor > >
(Template Class Transform)
Class Documentation¶
-
template<typename Target = Tensor>
class TensorTransform : public torch::data::transforms::Transform<Example<Tensor, Tensor>, Example<Tensor, Tensor>>¶ A
Transform
that is specialized for the typicalExample<Tensor, Tensor>
combination.It exposes a single
operator()
interface hook (for subclasses), and calls this function on inputExample
objects.Public Functions
-
virtual Tensor operator()(Tensor input) = 0¶
Transforms a single input tensor to an output tensor.
-
inline virtual OutputType apply(InputType input) override¶
Implementation of
Transform::apply
that callsoperator()
.
-
virtual Tensor operator()(Tensor input) = 0¶