Rate this Page

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>.