Shortcuts

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_

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