Home
last modified time | relevance | path

Searched refs:num_repeats (Results 1 – 11 of 11) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_sampler.py31 def test_config(num_samples, num_repeats=None): argument
34 if num_repeats is not None:
35 data1 = data1.repeat(num_repeats)
45 assert test_config(num_samples=3, num_repeats=None) == [0, 1, 2]
46 assert test_config(num_samples=None, num_repeats=2) == [0, 1, 2, 3, 4] * 2
47 assert test_config(num_samples=4, num_repeats=2) == [0, 1, 2, 3] * 2
54 def test_config(replacement, num_samples, num_repeats): argument
57 data1 = data1.repeat(num_repeats)
66 assert len(set(test_config(replacement=False, num_samples=2, num_repeats=6))) > 2
69 assert sorted(test_config(replacement=False, num_samples=None, num_repeats=4)) == ordered_res
[all …]
Dtest_datasets_tfrecord.py185 def get_res(shard_id, num_repeats): argument
188 data1 = data1.repeat(num_repeats)
214 def get_res(num_shards, shard_id, num_repeats): argument
216 ds1 = ds1.repeat(num_repeats)
/third_party/mindspore/tests/ut/cpp/dataset/
Dmap_op_test.cc389 uint32_t num_repeats = 3; in TEST_F() local
400 std::shared_ptr<RepeatOp> my_repeat_op = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
418 my_tfreader_op->SetTotalRepeats(num_repeats); in TEST_F()
419 my_tfreader_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
444 ASSERT_EQ(row_count, 10 * num_repeats); in TEST_F()
450 uint32_t num_repeats = 3; in TEST_F() local
461 std::shared_ptr<RepeatOp> my_repeat_op = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
475 my_map_op->SetTotalRepeats(num_repeats); in TEST_F()
476 my_map_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
480 my_tfreader_op->SetTotalRepeats(num_repeats); in TEST_F()
[all …]
Dc_api_epoch_ctrl_test.cc126 int32_t num_repeats = 3; in TEST_F() local
134 ds = ds->Repeat(num_repeats); in TEST_F()
161 EXPECT_EQ(i, sampler_size * num_repeats * num_epochs); in TEST_F()
175 int32_t num_repeats[2] = {2, 3}; in TEST_F() local
182 ds = ds->Repeat(num_repeats[0]); in TEST_F()
183 ds = ds->Repeat(num_repeats[1]); in TEST_F()
210 EXPECT_EQ(i, sampler_size * num_repeats[0] * num_repeats[1] * num_epochs); in TEST_F()
Dcache_op_test.cc282 uint32_t num_repeats = 4; in TEST_F() local
283 std::shared_ptr<RepeatOp> myRepeatOp = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
288 myCacheOp->SetTotalRepeats(num_repeats); in TEST_F()
289 myCacheOp->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
395 uint32_t num_repeats = 4; in TEST_F() local
396 std::shared_ptr<RepeatOp> myRepeatOp = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
401 myCacheOp->SetTotalRepeats(num_repeats); in TEST_F()
402 myCacheOp->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
484 uint32_t num_repeats = 4; in TEST_F() local
485 std::shared_ptr<RepeatOp> myRepeatOp = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
[all …]
Dzip_op_test.cc135 uint32_t num_repeats = 3; in TEST_F() local
165 my_tfreader_op->SetTotalRepeats(num_repeats); in TEST_F()
166 my_tfreader_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
169 my_tfreader_op2->SetTotalRepeats(num_repeats); in TEST_F()
170 my_tfreader_op2->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
174 std::shared_ptr<RepeatOp> my_repeat_op = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
177 zip_op->SetTotalRepeats(num_repeats); in TEST_F()
178 zip_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
Dmind_record_op_test.cc354 uint32_t num_repeats = 2; in TEST_F() local
355 std::shared_ptr<RepeatOp> my_repeat_op = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
359 my_mindrecord_op->SetTotalRepeats(num_repeats); in TEST_F()
360 my_mindrecord_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
427 uint32_t num_repeats = 2; in TEST_F() local
428 std::shared_ptr<RepeatOp> my_repeat_op = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
432 my_mindrecord_op->SetTotalRepeats(num_repeats); in TEST_F()
433 my_mindrecord_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
Dshuffle_op_test.cc283 uint32_t num_repeats = 2; in TEST_F() local
284 std::shared_ptr<RepeatOp> my_repeat_op = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
289 my_shuffle_op->SetTotalRepeats(num_repeats); in TEST_F()
290 my_shuffle_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
293 my_tfreader_op->SetTotalRepeats(num_repeats); in TEST_F()
294 my_tfreader_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
DtfReader_op_test.cc347 uint32_t num_repeats = 3; in TEST_F() local
348 std::shared_ptr<RepeatOp> my_repeat_op = std::make_shared<RepeatOp>(num_repeats); in TEST_F()
353 my_tfreader_op->SetTotalRepeats(num_repeats); in TEST_F()
354 my_tfreader_op->SetNumRepeatsPerEpoch(num_repeats); in TEST_F()
/third_party/openssl/test/
Decstresstest.c21 static int64_t num_repeats; variable
80 || !TEST_ptr(result = walk_curve(group, point, num_repeats))) in test_curve()
129 if (!atoi64(NUM_REPEATS, &num_repeats)) { in setup_tests()
139 if (!atoi64(p, &num_repeats) in setup_tests()
140 || num_repeats < 0) in setup_tests()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/
Drepeat_op.h94 int32_t num_repeats() { return num_repeats_; } in num_repeats() function