Home
last modified time | relevance | path

Searched refs:samples_per_tensor (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/tests/ut/cpp/dataset/
Dweighted_random_sampler_test.cc114 uint64_t samples_per_tensor = 10; in TEST_F() local
118 WeightedRandomSamplerRT m_sampler(weights, num_samples, true, samples_per_tensor); in TEST_F()
138 ASSERT_EQ(epoch, (num_samples + samples_per_tensor - 1) / samples_per_tensor); in TEST_F()
146 uint64_t samples_per_tensor = 10; in TEST_F() local
153 WeightedRandomSamplerRT m_sampler(weights, num_samples, false, samples_per_tensor); in TEST_F()
181 ASSERT_EQ(epoch, (num_samples + samples_per_tensor - 1) / samples_per_tensor); in TEST_F()
Dsubset_sampler_test.cc69 int64_t samples_per_tensor = 10; in TEST_F() local
72 SubsetSamplerRT sampler(input, num_samples, samples_per_tensor); in TEST_F()
94 ASSERT_EQ(epoch, (total_samples + samples_per_tensor - 1) / samples_per_tensor); in TEST_F()
Dsubset_random_sampler_test.cc69 int64_t samples_per_tensor = 10; in TEST_F() local
72 SubsetRandomSamplerRT sampler(input, num_samples, samples_per_tensor); in TEST_F()
93 ASSERT_EQ(epoch, (total_samples + samples_per_tensor - 1) / samples_per_tensor); in TEST_F()
Dimage_folder_op_test.cc240 int64_t samples_per_tensor = 10; in TEST_F() local
245 std::make_shared<WeightedRandomSamplerRT>(weights, num_samples, true, samples_per_tensor); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/
Dsubset_random_sampler.cc29 int64_t samples_per_tensor) in SubsetRandomSamplerRT() argument
30 : SubsetSamplerRT(indices, num_samples, samples_per_tensor) {} in SubsetRandomSamplerRT()
Dmind_record_sampler.cc22 …rdSamplerRT::MindRecordSamplerRT(mindrecord::ShardReader *shard_reader, int64_t samples_per_tensor) in MindRecordSamplerRT() argument
23 …: SamplerRT(0, samples_per_tensor), shard_reader_(shard_reader), sample_ids_(nullptr), next_id_(0)… in MindRecordSamplerRT()
Dpython_sampler.cc21 …T::PythonSamplerRT(int64_t num_samples, py::object py_sampler_instance, int64_t samples_per_tensor) in PythonSamplerRT() argument
22 : SamplerRT(num_samples, samples_per_tensor), in PythonSamplerRT()
Dsubset_sampler.cc21 …bsetSamplerRT(const std::vector<int64_t> &indices, int64_t num_samples, int64_t samples_per_tensor) in SubsetSamplerRT() argument
22 : SamplerRT(num_samples, samples_per_tensor), indices_(indices), sample_id_(0) {} in SubsetSamplerRT()
Dsequential_sampler.cc23 …amplerRT::SequentialSamplerRT(int64_t start_index, int64_t num_samples, int64_t samples_per_tensor) in SequentialSamplerRT() argument
24 …: SamplerRT(num_samples, samples_per_tensor), current_id_(start_index), start_index_(start_index),… in SequentialSamplerRT()
Drandom_sampler.cc25 int64_t samples_per_tensor) in RandomSamplerRT() argument
26 : SamplerRT(num_samples, samples_per_tensor), in RandomSamplerRT()
Dpk_sampler.cc23 …plerRT::PKSamplerRT(int64_t num_val, bool shuffle, int64_t num_samples, int64_t samples_per_tensor) in PKSamplerRT() argument
24 : SamplerRT(num_samples, samples_per_tensor), in PKSamplerRT()
Dweighted_random_sampler.cc31 bool replacement, int64_t samples_per_tensor) in WeightedRandomSamplerRT() argument
32 …: SamplerRT(num_samples, samples_per_tensor), weights_(weights), replacement_(replacement), sample… in WeightedRandomSamplerRT()
Dsampler.cc36 SamplerRT::SamplerRT(int64_t num_samples, int64_t samples_per_tensor) in SamplerRT() argument
39 samples_per_tensor_(samples_per_tensor), in SamplerRT()
Dpython_sampler.h34 int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Dsubset_random_sampler.h37 std::int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Dmind_record_sampler.h34 int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Dsequential_sampler.h34 int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Dsubset_sampler.h36 std::int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Drandom_sampler.h35 int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Dweighted_random_sampler.h38 int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Dpk_sampler.h36 int64_t samples_per_tensor = std::numeric_limits<int64_t>::max());
Dsampler.h67 SamplerRT(int64_t num_samples, int64_t samples_per_tensor);