Template Function torch::data::datasets::make_shared_dataset¶
Defined in File shared.h
Function Documentation¶
-
template<typename
UnderlyingDataset
, typename ...Args
>
SharedBatchDataset<UnderlyingDataset>torch::data::datasets
::
make_shared_dataset
(Args&&... args)¶ Constructs a new
SharedBatchDataset
by creating ashared_ptr<UnderlyingDatase>
.All arguments are forwarded to
make_shared<UnderlyingDataset>
.