Rate this Page

Struct BatchSize#

Inheritance Relationships#

Base Type#

Struct Documentation#

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

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

Public Functions

explicit BatchSize(size_t size)#
virtual size_t size() const noexcept override#

The number of elements accessed by this index.

operator size_t() const noexcept#

Public Members

size_t size_#