Struct BatchSize¶
Defined in File stream.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::data::samplers::CustomBatchRequest
(Struct CustomBatchRequest)
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_¶
-
explicit BatchSize(size_t size)¶