Home
last modified time | relevance | path

Searched refs:sampler_ (Results 1 – 25 of 63) sorted by relevance

123

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/
Dgenerator_node.cc37 sampler_(std::move(sampler)), in GeneratorNode()
47 sampler_(std::move(sampler)), in GeneratorNode()
54 …ake_shared<GeneratorNode>(generator_function_, column_names_, column_types_, source_len_, sampler_, in Copy()
57 …node = std::make_shared<GeneratorNode>(generator_function_, schema_, source_len_, sampler_, num_pa… in Copy()
82 if (sampler_) RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
149 if (sampler_) RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
150 sample_size = sampler_ ? sampler_rt->CalculateNumSamples(num_rows) : num_rows; in GetDatasetSize()
Dcityscapes_node.cc37 sampler_(sampler), in CityscapesNode()
41 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
49 if (sampler_ != nullptr) { in Print()
69 RETURN_IF_NOT_OK(ValidateDatasetSampler("CityscapesNode", sampler_)); in ValidateParams()
87 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
99 *shard_id = sampler_->ShardId(); in GetShardId()
114 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
127 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dsbu_node.cc31 …: MappableSourceNode(std::move(cache)), dataset_dir_(dataset_dir), decode_(decode), sampler_(sampl… in SBUNode()
34 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
47 RETURN_IF_NOT_OK(ValidateDatasetSampler("SBUNode", sampler_)); in ValidateParams()
68 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
81 *shard_id = sampler_->ShardId(); in GetShardId()
96 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
108 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Ddiv2k_node.cc39 sampler_(sampler) {} in DIV2KNode()
42 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
50 if (sampler_ != nullptr) { in Print()
64 RETURN_IF_NOT_OK(ValidateDatasetSampler("DIV2KNode", sampler_)); in ValidateParams()
99 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
111 *shard_id = sampler_->ShardId(); in GetShardId()
126 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
139 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dflickr_node.cc40 sampler_(sampler) {} in FlickrNode()
43 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
51 if (sampler_ != nullptr) { in Print()
86 RETURN_IF_NOT_OK(ValidateDatasetSampler("FlickrNode", sampler_)); in ValidateParams()
99 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
111 *shard_id = sampler_->ShardId(); in GetShardId()
126 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
139 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dcifar10_node.cc36 …: MappableSourceNode(std::move(cache)), dataset_dir_(dataset_dir), usage_(usage), sampler_(sampler… in Cifar10Node()
39 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
52 RETURN_IF_NOT_OK(ValidateDatasetSampler("Cifar10Node", sampler_)); in ValidateParams()
68 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
81 *shard_id = sampler_->ShardId(); in GetShardId()
97 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
111 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dcifar100_node.cc36 …: MappableSourceNode(std::move(cache)), dataset_dir_(dataset_dir), usage_(usage), sampler_(sampler… in Cifar100Node()
39 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
52 RETURN_IF_NOT_OK(ValidateDatasetSampler("Cifar100Node", sampler_)); in ValidateParams()
70 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
83 *shard_id = sampler_->ShardId(); in GetShardId()
98 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
110 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dmnist_node.cc35 …: MappableSourceNode(std::move(cache)), dataset_dir_(dataset_dir), usage_(usage), sampler_(sampler… in MnistNode()
38 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
49 RETURN_IF_NOT_OK(ValidateDatasetSampler("MnistNode", sampler_)); in ValidateParams()
64 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
77 *shard_id = sampler_->ShardId(); in GetShardId()
92 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
104 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dmanifest_node.cc43 sampler_(sampler) {} in ManifestNode()
46 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
53 if (sampler_ != nullptr) { in Print()
86 RETURN_IF_NOT_OK(ValidateDatasetSampler("ManifestNode", sampler_)); in ValidateParams()
103 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
116 *shard_id = sampler_->ShardId(); in GetShardId()
135 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
147 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dalbum_node.cc43 sampler_(sampler) {} in AlbumNode()
46 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
61 RETURN_IF_NOT_OK(ValidateDatasetSampler("AlbumNode", sampler_)); in ValidateParams()
78 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
90 *shard_id = sampler_->ShardId(); in GetShardId()
120 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
133 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dimage_folder_node.cc42 sampler_(sampler), in ImageFolderNode()
48 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
62 RETURN_IF_NOT_OK(ValidateDatasetSampler("ImageFolderNode", sampler_)); in ValidateParams()
76 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
88 *shard_id = sampler_->ShardId(); in GetShardId()
103 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
115 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dceleba_node.cc42 sampler_(sampler), in CelebANode()
47 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
60 RETURN_IF_NOT_OK(ValidateDatasetSampler("CelebANode", sampler_)); in ValidateParams()
74 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
87 *shard_id = sampler_->ShardId(); in GetShardId()
162 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
173 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dcoco_node.cc42 sampler_(sampler), in CocoNode()
46 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
58 RETURN_IF_NOT_OK(ValidateDatasetSampler("CocoNode", sampler_)); in ValidateParams()
140 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
154 *shard_id = sampler_->ShardId(); in GetShardId()
173 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
185 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dvoc_node.cc44 sampler_(sampler), in VOCNode()
48 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
62 RETURN_IF_NOT_OK(ValidateDatasetSampler("VOCNode", sampler_)); in ValidateParams()
123 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
136 *shard_id = sampler_->ShardId(); in GetShardId()
155 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in GetDatasetSize()
167 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
Dsbu_node.h84 std::shared_ptr<SamplerObj> Sampler() override { return sampler_; } in Sampler()
87 void SetSampler(std::shared_ptr<SamplerObj> sampler) override { sampler_ = sampler; } in SetSampler()
92 std::shared_ptr<SamplerObj> sampler_; variable
Dcifar100_node.h91 std::shared_ptr<SamplerObj> Sampler() override { return sampler_; } in Sampler()
94 void SetSampler(std::shared_ptr<SamplerObj> sampler) override { sampler_ = sampler; } in SetSampler()
99 std::shared_ptr<SamplerObj> sampler_; variable
Dcifar10_node.h91 std::shared_ptr<SamplerObj> Sampler() override { return sampler_; } in Sampler()
94 void SetSampler(std::shared_ptr<SamplerObj> sampler) override { sampler_ = sampler; } in SetSampler()
99 std::shared_ptr<SamplerObj> sampler_; variable
Dmnist_node.h91 std::shared_ptr<SamplerObj> Sampler() override { return sampler_; } in Sampler()
94 void SetSampler(std::shared_ptr<SamplerObj> sampler) override { sampler_ = sampler; } in SetSampler()
99 std::shared_ptr<SamplerObj> sampler_; variable
Dflickr_node.h94 std::shared_ptr<SamplerObj> Sampler() override { return sampler_; } in Sampler()
97 void SetSampler(std::shared_ptr<SamplerObj> sampler) override { sampler_ = sampler; } in SetSampler()
103 std::shared_ptr<SamplerObj> sampler_; variable
Dcoco_node.h94 std::shared_ptr<SamplerObj> Sampler() override { return sampler_; } in Sampler()
97 void SetSampler(std::shared_ptr<SamplerObj> sampler) override { sampler_ = sampler; } in SetSampler()
104 std::shared_ptr<SamplerObj> sampler_; variable
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/
Dcache_node.cc32 : DatasetNode(std::move(cache)), sampler_(sampler) { in CacheNode()
39 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
45 RETURN_IF_NOT_OK(ValidateDatasetSampler("CacheNode", sampler_)); in ValidateParams()
54 RETURN_IF_NOT_OK(cache_->CreateCacheOp(num_workers_, connector_que_size_, sampler_, &cache_op)); in Build()
Dcache_lookup_node.cc31 …: DatasetNode(std::move(cache)), sampler_(sampler), lookup_op_(nullptr), lookup_node_copy_(nullptr… in CacheLookupNode()
38 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
45 RETURN_IF_NOT_OK(ValidateDatasetSampler("CacheNode", sampler_)); in ValidateParams()
53 …RETURN_IF_NOT_OK(cache_->CreateCacheLookupOp(num_workers_, connector_que_size_, sampler_, &lookup_… in Build()
Dconcat_node.cc38 : sampler_(sampler), in ConcatNode()
46 std::shared_ptr<SamplerObj> sampler = (sampler_ == nullptr) ? nullptr : sampler_->SamplerCopy(); in Copy()
103 if (sampler_) RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt_base)); in GetDatasetSize()
105 sampler_ ? std::dynamic_pointer_cast<DistributedSamplerRT>(sampler_rt_base) : nullptr; in GetDatasetSize()
133 RETURN_IF_NOT_OK(sampler_->SamplerBuild(&sampler_rt)); in Build()
157 RETURN_IF_NOT_OK(sampler_->to_json(&sampler_args)); in to_json()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dmappable_leaf_op.cc32 RETURN_IF_NOT_OK(sampler_->GetNextSample(&sample_row)); in operator ()()
45 RETURN_IF_NOT_OK(sampler_->GetNextSample(&sample_row)); in operator ()()
70 RETURN_IF_NOT_OK(sampler_->GetNextSample(&sample_row)); in operator ()()
79 RETURN_IF_NOT_OK(sampler_->ResetSampler()); in Reset()
85 RETURN_IF_NOT_OK(sampler_->HandshakeRandomAccessOp(this)); in InitSampler()
Dgenerator_op.cc56 if (sampler_ != nullptr) return sampler_->HandshakeRandomAccessOp(this); in InitSampler()
71 if (sampler_ != nullptr) { in CreateGeneratorObject()
74 RETURN_IF_NOT_OK(sampler_->GetAllIdsThenReset(&sample_ids)); in CreateGeneratorObject()
165 int64_t num_rows_sampled = sampler_ ? sampler_->CalculateNumSamples(num_rows_) : num_rows_; in operator ()()

123