Shortcuts

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_

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