Class AlbumDataset
Defined in File datasets.h
Inheritance Relationships
Base Type
public mindspore::dataset::Dataset
(Class Dataset)
Class Documentation
-
class AlbumDataset : public mindspore::dataset::Dataset
Public Functions
-
AlbumDataset(const std::vector<char> &dataset_dir, const std::vector<char> &data_schema, const std::vector<std::vector<char>> &column_names, bool decode, const std::shared_ptr<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)
Constructor of AlbumDataset.
- Parameters
dataset_dir – [in] Path to the root directory that contains the dataset.
data_schema – [in] Path to dataset schema file.
column_names – [in] Column names used to specify columns to load, if empty, will read all columns (default = {}).
decode – [in] The option to decode the images in dataset (default = false).
sampler – [in] Shared pointer to a sampler object used to choose samples from the dataset. If sampler is not given, a
RandomSampler
will be used to randomly iterate the entire dataset (default = RandomSampler()).cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
-
AlbumDataset(const std::vector<char> &dataset_dir, const std::vector<char> &data_schema, const std::vector<std::vector<char>> &column_names, bool decode, const Sampler *sampler, const std::shared_ptr<DatasetCache> &cache)
Constructor of AlbumDataset.
- Parameters
dataset_dir – [in] Path to the root directory that contains the dataset.
data_schema – [in] Path to dataset schema file.
column_names – [in] Column names used to specify columns to load.
decode – [in] The option to decode the images in dataset.
sampler – [in] Raw pointer to a sampler object used to choose samples from the dataset.
cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
-
AlbumDataset(const std::vector<char> &dataset_dir, const std::vector<char> &data_schema, const std::vector<std::vector<char>> &column_names, bool decode, const std::reference_wrapper<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)
Constructor of AlbumDataset.
- Parameters
dataset_dir – [in] Path to the root directory that contains the dataset.
data_schema – [in] Path to dataset schema file.
column_names – [in] Column names used to specify columns to load.
decode – [in] The option to decode the images in dataset.
sampler – [in] Sampler object used to choose samples from the dataset.
cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
-
~AlbumDataset() override = default
Destructor of AlbumDataset.
-
AlbumDataset(const std::vector<char> &dataset_dir, const std::vector<char> &data_schema, const std::vector<std::vector<char>> &column_names, bool decode, const std::shared_ptr<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)