Rate this Page

Template Struct Stack< TensorExample >#

Inheritance Relationships#

Base Type#

Struct Documentation#

template<>
struct Stack<TensorExample> : public torch::data::transforms::BatchTransform<Example<Tensor, example::NoTarget>>#

A Collation for Example<Tensor, NoTarget> types that stacks all data tensors into one tensor.

Public Functions

inline TensorExample apply_batch(std::vector<TensorExample> examples) override#