Struct BatchSize

Inheritance Relationships

Base Type

Struct Documentation

struct torch::data::samplers::BatchSize : public torch::data::samplers::CustomBatchRequest

A wrapper around a batch size value, which implements the CustomBatchRequest interface.

Public Functions

BatchSize(size_t size)
size_t size () const noexceptoverride

The number of elements accessed by this index.

operator size_t() const noexcept

Public Members

size_t size_


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources