Shortcuts

Template Function torch::data::datasets::make_shared_dataset

Function Documentation

template<typename UnderlyingDataset, typename ...Args>
SharedBatchDataset<UnderlyingDataset> torch::data::datasets::make_shared_dataset(Args&&... args)

Constructs a new SharedBatchDataset by creating a shared_ptr<UnderlyingDatase>.

All arguments are forwarded to make_shared<UnderlyingDataset>.

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