Home
last modified time | relevance | path

Searched refs:dataset_size (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/mindspore/tests/ut/python/dataset/
Dtest_minddataset_padded.py177 def partitions(num_shards, num_padded, dataset_size): argument
186 assert data_set.get_dataset_size() == dataset_size
200 return num_iter == dataset_size * num_shards
217 def partitions(num_shards, num_padded, dataset_size): argument
232 assert data_set.get_dataset_size() == dataset_size
246 if local_index < dataset_size:
248 elif local_index < dataset_size * 2:
250 elif local_index < dataset_size * 3:
252 elif local_index < dataset_size * 4:
254 elif local_index < dataset_size * 5:
[all …]
Dtest_repeat.py268 dataset_size = data1.get_dataset_size()
269 logger.info("dataset repeat then batch's size is {}".format(dataset_size))
275 assert dataset_size == num1_iter == 6
291 dataset_size = data1.get_dataset_size()
292 logger.info("dataset batch then repeat's size is {}".format(dataset_size))
298 assert dataset_size == num1_iter == 8
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/src/
Ddistributed_sampler.py23 def __init__(self, dataset_size, num_replicas=None, rank=None, shuffle=True): argument
30 self.dataset_size = dataset_size
34 self.num_samples = int(math.ceil(dataset_size * 1.0 / self.num_replicas))
41 indices = np.random.RandomState(seed=self.epoch).permutation(self.dataset_size)
47 indices = list(range(self.dataset_size))
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/meta/
Dshard_distributed_sample.cc38 int64_t ShardDistributedSample::GetNumSamples(int64_t dataset_size, int64_t num_classes) { in GetNumSamples() argument
41 if (dataset_size % denominator_ == 0) { in GetNumSamples()
42 res = dataset_size / denominator_ * numerator_; in GetNumSamples()
44 res = dataset_size / denominator_ * numerator_ + 1; in GetNumSamples()
48 auto padded_size = dataset_size + no_of_padded_samples_; in GetNumSamples()
Dshard_category.cc39 int64_t ShardCategory::GetNumSamples(int64_t dataset_size, int64_t num_classes) { in GetNumSamples() argument
40 if (dataset_size == 0) return dataset_size; in GetNumSamples()
41 if (dataset_size > 0 && num_classes > 0 && num_categories_ > 0 && num_elements_ > 0) { in GetNumSamples()
Dshard_sequential_sample.cc31 int64_t ShardSequentialSample::GetNumSamples(int64_t dataset_size, int64_t num_classes) { in GetNumSamples() argument
33 return dataset_size; in GetNumSamples()
36 return dataset_size * kEpsilon; in GetNumSamples()
38 return std::min(static_cast<int64_t>(no_of_samples_), dataset_size); in GetNumSamples()
Dshard_sample.cc65 int64_t ShardSample::GetNumSamples(int64_t dataset_size, int64_t num_classes) { in GetNumSamples() argument
71 if (dataset_size % denominator_ == 0) { in GetNumSamples()
72 return dataset_size / denominator_ * numerator_; in GetNumSamples()
74 return dataset_size / denominator_ * numerator_ + 1; in GetNumSamples()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/
Dskip_node.cc63 int64_t *dataset_size) { in GetDatasetSize() argument
65 *dataset_size = dataset_size_; in GetDatasetSize()
70 *dataset_size = 0; in GetDatasetSize()
72 *dataset_size = num_rows - skip_count_; in GetDatasetSize()
74 dataset_size_ = *dataset_size; in GetDatasetSize()
Dtake_node.cc64 int64_t *dataset_size) { in GetDatasetSize() argument
66 *dataset_size = dataset_size_; in GetDatasetSize()
71 …*dataset_size = take_count_ == -1 ? num_rows : std::min(static_cast<int64_t>(take_count_), num_row… in GetDatasetSize()
72 dataset_size_ = *dataset_size; in GetDatasetSize()
Dzip_node.cc66 int64_t *dataset_size) { in GetDatasetSize() argument
68 *dataset_size = dataset_size_; in GetDatasetSize()
78 *dataset_size = *std::min_element(dataset_sizes.begin(), dataset_sizes.end()); in GetDatasetSize()
79 dataset_size_ = *dataset_size; in GetDatasetSize()
Dbatch_node.cc120 int64_t *dataset_size) { in GetDatasetSize() argument
122 *dataset_size = dataset_size_; in GetDatasetSize()
127 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), dataset_size)); in GetDatasetSize()
128 dataset_size_ = *dataset_size; in GetDatasetSize()
141 *dataset_size = num_rows; in GetDatasetSize()
Drepeat_node.cc74 int64_t *dataset_size) { in GetDatasetSize() argument
76 *dataset_size = dataset_size_; in GetDatasetSize()
84 *dataset_size = num_rows; in GetDatasetSize()
Dmap_node.cc211 int64_t *dataset_size) { in GetDatasetSize() argument
213 *dataset_size = dataset_size_; in GetDatasetSize()
221 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), dataset_size)); in GetDatasetSize()
222 dataset_size_ = *dataset_size; in GetDatasetSize()
226 return children_.front()->GetDatasetSize(size_getter, estimate, dataset_size); in GetDatasetSize()
Dconcat_node.cc82 int64_t *dataset_size) { in GetDatasetSize() argument
84 *dataset_size = dataset_size_; in GetDatasetSize()
122 *dataset_size = shard_dataset_size; in GetDatasetSize()
123 dataset_size_ = *dataset_size; in GetDatasetSize()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/
Dgenerator_node.cc136 int64_t *dataset_size) { in GetDatasetSize() argument
138 *dataset_size = dataset_size_; in GetDatasetSize()
142 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), dataset_size)); in GetDatasetSize()
143 dataset_size_ = *dataset_size; in GetDatasetSize()
151 *dataset_size = sample_size; in GetDatasetSize()
152 dataset_size_ = *dataset_size; in GetDatasetSize()
Drandom_node.cc124 int64_t *dataset_size) { in GetDatasetSize() argument
126 *dataset_size = dataset_size_; in GetDatasetSize()
130 *dataset_size = num_rows; in GetDatasetSize()
131 dataset_size_ = *dataset_size; in GetDatasetSize()
Dsbu_node.cc88 int64_t *dataset_size) { in GetDatasetSize() argument
90 *dataset_size = dataset_size_; in GetDatasetSize()
101 *dataset_size = sample_size; in GetDatasetSize()
102 dataset_size_ = *dataset_size; in GetDatasetSize()
Dcityscapes_node.cc105 int64_t *dataset_size) { in GetDatasetSize() argument
107 *dataset_size = dataset_size_; in GetDatasetSize()
120 *dataset_size = sample_size; in GetDatasetSize()
121 dataset_size_ = *dataset_size; in GetDatasetSize()
Dcifar10_node.cc88 int64_t *dataset_size) { in GetDatasetSize() argument
90 *dataset_size = dataset_size_; in GetDatasetSize()
104 *dataset_size = sample_size; in GetDatasetSize()
105 dataset_size_ = *dataset_size; in GetDatasetSize()
Ddiv2k_node.cc117 int64_t *dataset_size) { in GetDatasetSize() argument
119 *dataset_size = dataset_size_; in GetDatasetSize()
132 *dataset_size = sample_size; in GetDatasetSize()
133 dataset_size_ = *dataset_size; in GetDatasetSize()
Dusps_node.cc118 int64_t *dataset_size) { in GetDatasetSize() argument
120 *dataset_size = dataset_size_; in GetDatasetSize()
126 *dataset_size = sample_size > 0 ? std::min(num_rows, sample_size) : num_rows; in GetDatasetSize()
127 dataset_size_ = *dataset_size; in GetDatasetSize()
Dcifar100_node.cc90 int64_t *dataset_size) { in GetDatasetSize() argument
92 *dataset_size = dataset_size_; in GetDatasetSize()
103 *dataset_size = sample_size; in GetDatasetSize()
104 dataset_size_ = *dataset_size; in GetDatasetSize()
Dmnist_node.cc84 int64_t *dataset_size) { in GetDatasetSize() argument
86 *dataset_size = dataset_size_; in GetDatasetSize()
97 *dataset_size = sample_size; in GetDatasetSize()
98 dataset_size_ = *dataset_size; in GetDatasetSize()
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/
Dtest_fl_fasterrcnn.py123 dataset_size = dataset.get_dataset_size()
126 return dataset_size, dataset
150 dataset_size, dataset = train_fasterrcnn_()
186 lr = Tensor(dynamic_lr(config, dataset_size), mstype.float32)
195 time_cb = TimeMonitor(data_size=dataset_size)
206 start_fl_job = StartFLJob(dataset_size * config.batch_size)
/third_party/mindspore/mindspore/nn/probability/infer/variational/
Dsvi.py68 dataset_size = 0
72 dataset_size += len(x)
75 self._loss = train_loss / dataset_size

1234