Shortcuts

Typedef torch::data::transforms::Collation

Typedef Documentation

template<typename T, typename BatchType = std::vector<T>>
using torch::data::transforms::Collation = BatchTransform<BatchType, T>

A Collation is a transform that reduces a batch into a single value.

The result is a BatchDataset that has the type of the single value as its BatchType.

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