Shortcuts

Template Struct Stack< Example<> >

Inheritance Relationships

Base Type

Struct Documentation

template<>
struct torch::data::transforms::Stack<Example<>> : public torch::data::transforms::BatchTransform<Example<>>

A Collation for Example<Tensor, Tensor> types that stacks all data tensors into one tensor, and all target (label) tensors into one tensor.

Public Functions

Example apply_batch(std::vector<Example<>> examples) override

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources