/third_party/mindspore/mindspore/ccsrc/minddata/dataset/callback/ |
D | callback_manager.cc | 48 for (size_t ind = 0; ind < callbacks_.size(); ind++) { in Begin() local 49 if (callbacks_[ind]->IsBeginNeeded()) callback_inds.push_back(ind); in Begin() 57 for (size_t ind : callback_inds) { in Begin() local 58 RETURN_IF_NOT_OK(callbacks_[ind]->DSBegin(cb_param)); in Begin() 68 for (size_t ind = 0; ind < callbacks_.size(); ind++) { in EpochBegin() local 69 if (callbacks_[ind]->IsEpochBeginNeeded()) callback_inds.push_back(ind); in EpochBegin() 77 for (size_t ind : callback_inds) { in EpochBegin() local 78 RETURN_IF_NOT_OK(callbacks_[ind]->DSEpochBegin(cb_param)); in EpochBegin() 88 for (size_t ind = 0; ind < callbacks_.size(); ind++) { in StepBegin() local 89 …if (callbacks_[ind]->IsNStepBeginNeeded() && (cb_param.cur_epoch_step_num_ - 1) % callbacks_[ind]-… in StepBegin() [all …]
|
/third_party/ltp/lib/ |
D | random_range.c | 683 int ind; local 698 for (ind = 2; ind < argc; ind++) { 701 sscanf(argv[ind], "%i", &mask); 726 int ind; local 750 for (ind = 0; ind < PARTNUM; ind++) 751 cntarr[ind] = 0; 774 for (ind = 0; ind < PARTNUM; ind++) { 775 valbound[ind] = part * ind; 786 for (ind = 0; ind < PARTNUM - 1; ind++) { 787 if (valbound[ind] < lret [all …]
|
D | tlibio.c | 282 unsigned int ind; in lio_parse_io_arg1() local 289 for (ind = 0; ind < sizeof(Lio_info1) / sizeof(struct lio_info_type); in lio_parse_io_arg1() 290 ind++) { in lio_parse_io_arg1() 291 if (strcmp(string, Lio_info1[ind].token) == 0) { in lio_parse_io_arg1() 292 mask |= Lio_info1[ind].bits; in lio_parse_io_arg1() 314 unsigned int ind; in lio_help1() local 316 for (ind = 0; ind < sizeof(Lio_info1) / sizeof(struct lio_info_type); in lio_help1() 317 ind++) { in lio_help1() 318 printf("%s %s : %s\n", prefix, Lio_info1[ind].token, in lio_help1() 319 Lio_info1[ind].desc); in lio_help1() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mknod/ |
D | mknod06.c | 123 int ind; /* counter to test different test conditions */ in main() local 137 for (ind = 0; Test_cases[ind].desc != NULL; ind++) { in main() 138 node_name = Test_cases[ind].pathname; in main() 139 test_desc = Test_cases[ind].desc; in main() 153 Test_cases[ind].exp_errno); in main() 157 if (TEST_ERRNO == Test_cases[ind].exp_errno) { in main() 163 TEST_ERRNO, Test_cases[ind].exp_errno); in main() 188 int ind; in setup() local 201 for (ind = 0; Test_cases[ind].desc != NULL; ind++) { in setup() 202 if (!Test_cases[ind].pathname) in setup() [all …]
|
/third_party/boost/libs/histogram/examples/ |
D | guide_stdlib_algorithms.cpp | 23 auto ind = indexed(h1); in main() local 26 std::fill(ind.begin(), ind.end(), 0.25); in main() 29 std::partial_sum(ind.begin(), ind.end(), ind.begin()); in main() 39 auto b = std::any_of(ind.begin(), ind.end(), [](const auto& x) { return x < 0.1; }); in main() 43 auto min_it = std::min_element(ind.begin(), ind.end()); in main() 47 auto max_it = std::max_element(ind.begin(), ind.end()); in main() 59 const auto aa = std::inner_product(ind.begin(), ind.end(), ind.begin(), 0.0); in main() 61 const auto ab = std::inner_product(ind.begin(), ind.end(), ind2.begin(), 0.0); in main()
|
/third_party/ltp/testcases/kernel/syscalls/symlink/ |
D | symlink03.c | 147 int ind; /* counter to test different test conditions */ in main() local 161 for (ind = 0; Test_cases[ind].desc != NULL; ind++) { in main() 162 test_file = Test_cases[ind].file; in main() 163 sym_file = Test_cases[ind].link; in main() 164 test_desc = Test_cases[ind].desc; in main() 178 if (TEST_ERRNO == Test_cases[ind].exp_errno) { in main() 186 Test_cases[ind].exp_errno); in main() 191 Test_cases[ind].exp_errno); in main() 211 int ind; in setup() local 232 for (ind = 0; Test_cases[ind].desc != NULL; ind++) { in setup() [all …]
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | open_flags.c | 197 unsigned int ind; in parse_open_flags() local 210 for (ind = 0; in parse_open_flags() 211 ind < sizeof(Open_flags) / sizeof(struct open_flag_t); in parse_open_flags() 212 ind++) { in parse_open_flags() 213 if (strcmp(name, Open_flags[ind].symbol) == 0) { in parse_open_flags() 214 bits |= Open_flags[ind].flag; in parse_open_flags() 241 int ind; in openflags2symbols() local 263 for (ind = 1; ind < size; ind++) { in openflags2symbols() 265 if ((bits & Open_flags[ind].flag) == Open_flags[ind].flag) { in openflags2symbols() 269 strcat(Open_symbols, Open_flags[ind].symbol); in openflags2symbols() [all …]
|
D | forker.c | 163 static int ind = 0; in forker() local 165 Forker_pids[ind] = 0; in forker() 244 int ind; local 274 for (ind = 0; ind < Forker_npids; ind++) { 275 printf("%d ind:%-2d pid:%d\n", getpid(), ind, Forker_pids[ind]);
|
D | databin.c | 46 int ind; in databingen() local 59 for (ind = 0; ind < bsize; ind++) in databingen() 60 buffer[ind] = ((offset + ind) % 8 & 0177); in databingen() 73 for (ind = 0; ind < bsize; ind++) in databingen() 74 buffer[ind] = (rand() & 0177) | 0100; in databingen()
|
/third_party/boost/libs/histogram/test/ |
D | indexed_test.cpp | 38 auto ind = indexed(h, Coverage()); in run_1d_tests() local 39 auto it = ind.begin(); in run_1d_tests() 68 BOOST_TEST(it == ind.end()); in run_1d_tests() 86 auto ind = indexed(h, Coverage()); in run_3d_tests() local 87 auto it = ind.begin(); in run_3d_tests() 105 BOOST_TEST(it == ind.end()); in run_3d_tests() 134 auto ind = indexed(h, Coverage()); in run_stdlib_tests() local 135 std::generate(ind.begin(), ind.end(), generator{}); in run_stdlib_tests() 139 for (auto&& x : ind) BOOST_TEST_EQ(*x, ++i); in run_stdlib_tests() 143 auto it = std::min_element(ind.begin(), ind.end()); in run_stdlib_tests() [all …]
|
/third_party/grpc/test/core/tsi/alts/crypt/ |
D | aes_gcm_test.cc | 237 size_t ind; in gsec_test_multiple_random_encrypt_decrypt() local 238 for (ind = 0; ind < count; ind++) { in gsec_test_multiple_random_encrypt_decrypt() 239 size_t aad_length = (aad_lengths == nullptr) ? 0 : aad_lengths[ind]; in gsec_test_multiple_random_encrypt_decrypt() 241 (message_lengths == nullptr) ? 0 : message_lengths[ind]; in gsec_test_multiple_random_encrypt_decrypt() 242 gsec_test_random_array(&(nonces[ind]), nonce_length); in gsec_test_multiple_random_encrypt_decrypt() 243 gsec_test_random_array(&(aads[ind]), aad_length); in gsec_test_multiple_random_encrypt_decrypt() 244 gsec_test_random_array(&(messages[ind]), message_length); in gsec_test_multiple_random_encrypt_decrypt() 261 for (ind = 0; ind < count; ind++) { in gsec_test_multiple_random_encrypt_decrypt() 262 size_t aad_length = (aad_lengths == nullptr) ? 0 : aad_lengths[ind]; in gsec_test_multiple_random_encrypt_decrypt() 264 (message_lengths == nullptr) ? 0 : message_lengths[ind]; in gsec_test_multiple_random_encrypt_decrypt() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/sigaltstack/ |
D | sigaltstack02.c | 114 int ind; /* counter to test different test conditions */ in main() local 124 for (ind = 0; Test_cases[ind].desc != NULL; ind++) { in main() 125 sigstk.ss_size = Test_cases[ind].size; in main() 126 sigstk.ss_flags = Test_cases[ind].flag; in main() 127 test_desc = Test_cases[ind].desc; in main() 135 Test_cases[ind].exp_errno) { in main() 145 [ind].exp_errno); in main() 150 Test_cases[ind].exp_errno); in main()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/gnn/ |
D | graph_loader.cc | 150 for (int32_t ind : indices) { in LoadNode() local 153 …"node_feature_" + std::to_string(ind), col_blob, graph_impl_->graph_shared_memory_.get(), &tensor_… in LoadNode() 154 RETURN_IF_NOT_OK((*node)->UpdateFeature(std::make_shared<Feature>(ind, tensor_sm, true))); in LoadNode() 155 (*feature_map)[node_type].insert(ind); in LoadNode() 156 if ((*default_feature)[ind] == nullptr) { in LoadNode() 159 …graph_feature_parser_->LoadFeatureTensor("node_feature_" + std::to_string(ind), col_blob, &tensor)… in LoadNode() 163 (*default_feature)[ind] = std::make_shared<Feature>(ind, zero_tensor); in LoadNode() 168 for (int32_t ind : indices) { in LoadNode() local 171 …graph_feature_parser_->LoadFeatureTensor("node_feature_" + std::to_string(ind), col_blob, &tensor)… in LoadNode() 172 RETURN_IF_NOT_OK((*node)->UpdateFeature(std::make_shared<Feature>(ind, tensor))); in LoadNode() [all …]
|
/third_party/python/Lib/test/ |
D | test_index.py | 8 return self.ind 20 self.o.ind = -2 21 self.n.ind = 2 26 self.o.ind = 1 27 self.n.ind = 2 36 self.o.ind = 4 37 self.n.ind = 5 51 self.o.ind = 'dumb' 52 self.n.ind = 'bad' 103 self.o.ind = -2 [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/kernels/ |
D | audio_utils.cc | 71 int ind = 0; in ComplexAngle() local 73 for (auto itr = input->begin<T>(); itr != input->end<T>(); itr++, ind++) { in ComplexAngle() 77 phase[ind] = atan2(y, x); in ComplexAngle() 103 int ind = 0; in ComplexAbs() local 104 for (auto itr = input->begin<T>(); itr != input->end<T>(); itr++, ind++) { in ComplexAbs() 108 abs[ind] = sqrt(pow(y, 2) + pow(x, 2)); in ComplexAbs() 135 int ind = 0; in Polar() local 140 complex_vec[ind++] = cos(*itr_angle) * (*itr_abs); in Polar() 141 complex_vec[ind++] = sin(*itr_angle) * (*itr_abs); in Polar() 166 for (int ind = 0; ind < in_vect.size(); ind++) { in PadComplexTensor() local [all …]
|
/third_party/openssl/crypto/x509v3/ |
D | v3_admis.c | 55 BIO *bp, int ind); 73 BIO *bp, int ind) in i2r_NAMING_AUTHORITY() argument 85 if (BIO_printf(bp, "%*snamingAuthority: ", ind, "") <= 0) in i2r_NAMING_AUTHORITY() 92 if (BIO_printf(bp, "%*s admissionAuthorityId: ", ind, "") <= 0) in i2r_NAMING_AUTHORITY() 102 if (BIO_printf(bp, "%*s namingAuthorityText: ", ind, "") <= 0 in i2r_NAMING_AUTHORITY() 108 if (BIO_printf(bp, "%*s namingAuthorityUrl: ", ind, "") <= 0 in i2r_NAMING_AUTHORITY() 120 BIO *bp, int ind) in i2r_ADMISSION_SYNTAX() argument 126 if (BIO_printf(bp, "%*sadmissionAuthority:\n", ind, "") <= 0 in i2r_ADMISSION_SYNTAX() 127 || BIO_printf(bp, "%*s ", ind, "") <= 0 in i2r_ADMISSION_SYNTAX() 136 if (BIO_printf(bp, "%*sEntry %0d:\n", ind, "", 1 + i) <= 0) goto err; in i2r_ADMISSION_SYNTAX() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ |
D | plugin_op.cc | 39 for (size_t ind = 0; ind < in_row.size(); ind++) { in TensorRowToPlugin() local 40 plugin::Tensor &tensor = (*out_row)[ind]; in TensorRowToPlugin() 41 if (in_row[ind]->type().IsNumeric()) { in TensorRowToPlugin() 42 dsize_t buffer_size = in_row[ind]->SizeInBytes(); in TensorRowToPlugin() 45 …int ret_code = memcpy_s(tensor.buffer_.data(), tensor.buffer_.size(), in_row[ind]->GetBuffer(), bu… in TensorRowToPlugin() 48 …int ret_code = memcpy_s(tensor.buffer_.data(), buffer_size, in_row[ind]->GetBuffer(), buffer_size); in TensorRowToPlugin() 52 CHECK_FAIL_RETURN_UNEXPECTED(in_row[ind]->shape().NumOfElements() == 1, in TensorRowToPlugin() 55 std::string str1(*(in_row[ind]->begin<std::string_view>())); in TensorRowToPlugin() 60 tensor.shape_ = in_row[ind]->shape().AsVector(); in TensorRowToPlugin() 61 tensor.type_ = in_row[ind]->type().ToString(); in TensorRowToPlugin()
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_vocab.py | 44 ind = 0 47 assert d["text"] == res[ind], ind 48 ind += 1 56 ind = 0 59 assert d["text"] == res[ind], ind 60 ind += 1 69 ind = 0 71 assert d["text"] == res[ind], ind 72 ind += 1 128 ind = 0 [all …]
|
/third_party/openssl/crypto/ocsp/ |
D | v3_ocsp.c | 42 BIO *bp, int ind); 111 int ind) in i2r_ocsp_crlid() argument 115 if (BIO_printf(bp, "%*scrlUrl: ", ind, "") <= 0) in i2r_ocsp_crlid() 123 if (BIO_printf(bp, "%*scrlNum: ", ind, "") <= 0) in i2r_ocsp_crlid() 131 if (BIO_printf(bp, "%*scrlTime: ", ind, "") <= 0) in i2r_ocsp_crlid() 144 BIO *bp, int ind) in i2r_ocsp_acutoff() argument 146 if (BIO_printf(bp, "%*s", ind, "") <= 0) in i2r_ocsp_acutoff() 154 int ind) in i2r_object() argument 156 if (BIO_printf(bp, "%*s", ind, "") <= 0) in i2r_object() 240 BIO *bp, int ind) in i2r_ocsp_serviceloc() argument [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/ |
D | mediancut.c | 32 unsigned int ind; member 55 f_pixel px = achv[box->ind + i].acolor; in box_variance() 56 double weight = achv[box->ind + i].adjusted_weight; in box_variance() 76 const double diff = colordifference (mean, achv[box->ind + i].acolor); in box_max_error() 236 const float *chans = (const float *) &achv[b->ind + i].acolor; in prepare_sort() 239 achv[b->ind + i].tmp.sort_value = in prepare_sort() 250 const unsigned int ind = b->ind, end = ind + b->colors; in prepare_sort() local 251 for (unsigned int j = ind; j < end; j++) in prepare_sort() 263 hist_item_sort_range (&(achv[b->ind]), b->colors, median_start); in get_median() 266 return achv[b->ind + median_start].acolor; in get_median() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/ |
D | BigDecimal.java | 364 private byte ind; // assumed undefined field in BigDecimal 546 ind = ispos; // assume positive in BigDecimal() 551 ind = isneg; in BigDecimal() 713 ind = iszero; // force to show zero in BigDecimal() 784 ind = iszero; in BigDecimal() 787 ind = ispos; in BigDecimal() 790 ind = isneg; in BigDecimal() 796 ind = ispos; in BigDecimal() 799 ind = isneg; in BigDecimal() 810 ind = ispos; in BigDecimal() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/ |
D | BigDecimal.java | 353 private byte ind; // assumed undefined field in BigDecimal 530 ind = ispos; // assume positive in BigDecimal() 535 ind = isneg; in BigDecimal() 697 ind = iszero; // force to show zero in BigDecimal() 766 ind = iszero; in BigDecimal() 769 ind = ispos; in BigDecimal() 772 ind = isneg; in BigDecimal() 778 ind = ispos; in BigDecimal() 781 ind = isneg; in BigDecimal() 792 ind = ispos; in BigDecimal() [all …]
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | c_api_text_vocab_test.cc | 79 auto ind = row["text"]; in TEST_F() local 80 MS_LOG(INFO) << ind.Shape(); in TEST_F() 81 TEST_MS_LOG_MSTENSOR(INFO, "ind: ", ind); in TEST_F() 86 EXPECT_MSTENSOR_EQ(ind, ms_expected_item); in TEST_F() 133 auto ind = row["text"]; in TEST_F() local 134 MS_LOG(INFO) << ind.Shape(); in TEST_F() 135 TEST_MS_LOG_MSTENSOR(INFO, "ind: ", ind); in TEST_F() 140 EXPECT_MSTENSOR_EQ(ind, ms_expected_item); in TEST_F() 187 auto ind = row["text"]; in TEST_F() local 188 MS_LOG(INFO) << ind.Shape(); in TEST_F() [all …]
|
/third_party/boost/libs/numeric/odeint/performance/ |
D | plot_result.py | 42 ind = np.arange(3) # the x locations for the groups variable 47 rects1 = ax.bar(ind, t_gcc, width, color='b', label="odeint gcc") 48 rects2 = ax.bar(ind+width, t_intel, width, color='g', label="odeint intel") 49 rects3 = ax.bar(ind+2*width, t_c_intel, width, color='y', label="C intel") 50 rects4 = ax.bar(ind+3*width, t_gfort, width, color='c', label="gfort") 55 ax.set_xticks(ind + 1.5*width)
|
/third_party/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod01.c | 22 int ind; in verify_fchmod() local 25 for (ind = 0; ind < 8; ind++) { in verify_fchmod() 26 mode = (mode_t)modes[ind]; in verify_fchmod()
|