/third_party/selinux/checkpolicy/ |
D | checkpolicy.c | 391 char ans[80 + 1], *path, *fstype; in main() local 751 FGETS(ans, sizeof(ans), stdin); in main() 752 switch (ans[0]) { in main() 755 FGETS(ans, sizeof(ans), stdin); in main() 756 ssid = atoi(ans); in main() 759 FGETS(ans, sizeof(ans), stdin); in main() 760 tsid = atoi(ans); in main() 763 FGETS(ans, sizeof(ans), stdin); in main() 764 if (isdigit(ans[0])) { in main() 765 tclass = atoi(ans); in main() [all …]
|
/third_party/python/Lib/ |
D | _pydecimal.py | 252 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True) 253 return ans._fix_nan(context) 893 ans = self._compare_check_nans(other, context) 894 if ans: 902 ans = self._compare_check_nans(other, context) 903 if ans: 911 ans = self._compare_check_nans(other, context) 912 if ans: 920 ans = self._compare_check_nans(other, context) 921 if ans: [all …]
|
/third_party/python/Lib/idlelib/idle_test/ |
D | test_editmenu.py | 40 for tag, ans in ('', 'onetwo\n'), ('sel', 'two\n'): 41 with self.subTest(tag=tag, ans=ans): 45 self.assertEqual(text.get('1.0', 'end'), ans) 52 for end, ans in (0, 'onetwo'), ('end', 'two'): 53 with self.subTest(entry=entry, end=end, ans=ans): 58 self.assertEqual(entry.get(), ans) 64 for end, ans in (0, 'onetwo'), ('end', 'two'): 65 with self.subTest(end=end, ans=ans): 70 self.assertEqual(spin.get(), ans)
|
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/test/duration/testdata/ |
D | testdata_fr.txt | 19 il y a 3 ans 20 il y a 2 ans 24 dans 2 ans 25 dans 3 ans 26 dans 5 ans 27 dans 10 ans 28 dans 11 ans 29 dans 12 ans 30 dans 20 ans 31 dans 21 ans [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/ |
D | testdata_fr.txt | 19 il y a 3 ans 20 il y a 2 ans 24 dans 2 ans 25 dans 3 ans 26 dans 5 ans 27 dans 10 ans 28 dans 11 ans 29 dans 12 ans 30 dans 20 ans 31 dans 21 ans [all …]
|
/third_party/mindspore/mindspore/ccsrc/debug/rdr/ |
D | running_data_recorder.cc | 42 …bool ans = mindspore::RecorderManager::Instance().RecordObject(std::move(task_debug_info_recorder)… in RecordTaskDebugInfo() local 43 return ans; in RecordTaskDebugInfo() 55 bool ans = mindspore::RecorderManager::Instance().RecordObject(std::move(graph_recorder)); in RecordAnfGraph() local 56 return ans; in RecordAnfGraph() 67 …bool ans = mindspore::RecorderManager::Instance().RecordObject(std::move(graph_exec_order_recorder… in RecordGraphExecOrder() local 68 return ans; in RecordGraphExecOrder() 77 bool ans = mindspore::RecorderManager::Instance().RecordObject(std::move(string_recorder)); in RecordString() local 78 return ans; in RecordString() 88 …bool ans = mindspore::RecorderManager::Instance().RecordObject(std::move(stream_exec_order_recorde… in RecordStreamExecOrder() local 89 return ans; in RecordStreamExecOrder() [all …]
|
/third_party/libxml2/ |
D | xmlcatalog.c | 103 xmlChar *ans; in usershell() local 196 ans = xmlCatalogResolvePublic((const xmlChar *) argv[0]); in usershell() 197 if (ans == NULL) { in usershell() 200 printf("%s\n", (char *) ans); in usershell() 201 xmlFree(ans); in usershell() 208 ans = xmlCatalogResolveSystem((const xmlChar *) argv[0]); in usershell() 209 if (ans == NULL) { in usershell() 212 printf("%s\n", (char *) ans); in usershell() 213 xmlFree(ans); in usershell() 242 ans = xmlCatalogResolve(BAD_CAST argv[0], in usershell() [all …]
|
/third_party/mindspore/tests/ut/python/nn/probability/distribution/ |
D | test_bernoulli.py | 90 ans = net(value) 91 assert isinstance(ans, Tensor) 120 ans = net(value, probs) 121 assert isinstance(ans, Tensor) 147 ans = ber_net(probs_b, probs_a) 148 assert isinstance(ans, Tensor) 174 ans = net(probs_b, probs_a) 175 assert isinstance(ans, Tensor) 202 ans = net(value, probs) 203 assert isinstance(ans, Tensor) [all …]
|
D | test_exponential.py | 79 ans = net(value) 80 assert isinstance(ans, Tensor) 106 ans = net(value, rate) 107 assert isinstance(ans, Tensor) 130 ans = net(rate_b, rate_a) 131 assert isinstance(ans, Tensor) 154 ans = net(rate_b, rate_a) 155 assert isinstance(ans, Tensor) 178 ans = net() 179 assert isinstance(ans, Tensor) [all …]
|
D | test_cauchy.py | 83 ans = net(value) 84 assert isinstance(ans, Tensor) 112 ans = net(value, mu, s) 113 assert isinstance(ans, Tensor) 140 ans = net(mu, s, mu_a, s_a) 141 assert isinstance(ans, Tensor) 195 ans = net() 196 assert isinstance(ans, Tensor) 199 ans = net() 202 ans = net() [all …]
|
D | test_geometric.py | 90 ans = net(value) 91 assert isinstance(ans, Tensor) 120 ans = net(value, probs) 121 assert isinstance(ans, Tensor) 147 ans = ber_net(probs_b, probs_a) 148 assert isinstance(ans, Tensor) 174 ans = net(probs_b, probs_a) 175 assert isinstance(ans, Tensor) 201 ans = net() 202 assert isinstance(ans, Tensor) [all …]
|
D | test_beta.py | 92 ans = net(value) 93 assert isinstance(ans, Tensor) 117 ans = net(value, concentration1, concentration0) 118 assert isinstance(ans, Tensor) 143 ans = net(concentration1_b, concentration0_b, concentration1_a, concentration0_a) 144 assert isinstance(ans, Tensor) 169 ans = net(concentration1_b, concentration0_b, concentration1_a, concentration0_a) 170 assert isinstance(ans, Tensor) 191 ans = net() 192 assert isinstance(ans, Tensor) [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/ |
D | bitpacking.h | 49 static void PackFromOriginToUint(std::stack<bool> *ans, std::vector<T2> *packed_data_vec) { in PackFromOriginToUint() argument 50 MS_ASSERT(ans != nullptr); in PackFromOriginToUint() 53 bool bit_tmp = ans->top(); in PackFromOriginToUint() 55 ans->pop(); in PackFromOriginToUint() 61 static void DoBinary(int bin_num, T2 n, std::stack<bool> *ans, std::vector<T2> *packed_data_vec) { in DoBinary() argument 62 MS_ASSERT(ans != nullptr); in DoBinary() 66 ans->push(a); in DoBinary() 67 if (ans->size() == sizeof(T2) * 8) { in DoBinary() 68 PackFromOriginToUint(ans, packed_data_vec); in DoBinary()
|
/third_party/mindspore/tests/st/probability/bijector/ |
D | test_scalar_affine.py | 39 ans = forward(Tensor(x, dtype=dtype.float32)) 42 assert (np.abs(ans.asnumpy() - expected) < tol).all() 58 ans = backward(Tensor(x, dtype=dtype.float32)) 61 assert (np.abs(ans.asnumpy() - expected) < tol).all() 77 ans = forward_jacobian(x) 80 assert (np.abs(ans.asnumpy() - expected) < tol).all() 96 ans = backward_jacobian(x) 99 assert (np.abs(ans.asnumpy() - expected) < tol).all()
|
D | test_exp.py | 41 ans = forward(tx) 44 assert (np.abs(ans.asnumpy() - expected) < tol).all() 62 ans = inverse(ty) 65 assert (np.abs(ans.asnumpy() - expected) < tol).all() 82 ans = forward_jacobian(tx) 85 assert (np.abs(ans.asnumpy() - expected) < tol).all() 102 ans = inverse_jacobian(ty) 105 assert (np.abs(ans.asnumpy() - expected) < tol).all()
|
D | test_invert.py | 40 ans, ans2 = forward(Tensor(x, dtype=dtype.float32)) 42 assert (np.abs(ans.asnumpy() - ans2.asnumpy()) < tol).all() 59 ans, ans2 = backward(Tensor(x, dtype=dtype.float32)) 61 assert (np.abs(ans.asnumpy() - ans2.asnumpy()) < tol).all() 79 ans, ans2 = forward_jacobian(x) 81 assert (np.abs(ans.asnumpy() - ans2.asnumpy()) < tol).all() 99 ans, ans2 = backward_jacobian(x) 101 assert (np.abs(ans.asnumpy() - ans2.asnumpy()) < tol).all()
|
D | test_softplus.py | 39 ans = forward(Tensor(x, dtype=dtype.float32)) 42 assert (np.abs(ans.asnumpy() - expected) < tol).all() 58 ans = backward(Tensor(x, dtype=dtype.float32)) 61 assert (np.abs(ans.asnumpy() - expected) < tol).all() 77 ans = forward_jacobian(Tensor(x, dtype=dtype.float32)) 80 assert (np.abs(ans.asnumpy() - expected) < tol).all() 96 ans = backward_jacobian(Tensor(x, dtype=dtype.float32)) 99 assert (np.abs(ans.asnumpy() - expected) < tol).all()
|
D | test_power_transform.py | 42 ans = forward(tx) 45 assert (np.abs(ans.asnumpy() - expected) < tol).all() 64 ans = inverse(ty) 67 assert (np.abs(ans.asnumpy() - expected) < tol).all() 85 ans = forward_jacobian(tx) 88 assert (np.abs(ans.asnumpy() - expected) < tol).all() 106 ans = inverse_jacobian(ty) 109 assert (np.abs(ans.asnumpy() - expected) < tol).all()
|
D | test_gumbel_cdf.py | 41 ans = forward(Tensor(x, dtype=dtype.float32)) 44 assert (np.abs(ans.asnumpy() - expected) < tol).all() 62 ans = backward(Tensor(x, dtype=dtype.float32)) 65 assert (np.abs(ans.asnumpy() - expected) < tol).all() 83 ans = forward_jacobian(Tensor(x)) 87 assert (np.abs(ans.asnumpy() - expected) < tol).all() 105 ans = backward_jacobian(Tensor(x)) 108 assert (np.abs(ans.asnumpy() - expected) < tol).all()
|
/third_party/boost/libs/thread/test/ |
D | test_9303.cpp | 53 std::string string_with_params(std::string& ans) in string_with_params() argument 55 return ans; in string_with_params() 60 std::string ans("forty two"); in main() local 94 example(ans); in main() 114 boost::thread task(boost::move(example), boost::ref(ans)); in main() 126 { boost::bind(&string_with_params, ans) }; in main() 128 boost::thread task(boost::move(example), boost::ref(ans)); in main() 143 …tr<task_t> example = boost::make_shared<task_t>(boost::bind(&string_with_params, boost::ref(ans))); in main() 168 …st::shared_ptr<task_t> example = boost::make_shared<task_t>(boost::bind(&string_with_params, ans)); in main()
|
/third_party/boost/libs/math/test/ |
D | test_gamma_hooks.hpp | 201 double ans, qans; in gamma_q() local 203 gamma_inc (&x, &y, &ans, &qans, &i); in gamma_q() 216 double ans, qans; in gamma_p() local 218 gamma_inc (&x, &y, &ans, &qans, &i); in gamma_p() 219 return ans; in gamma_p() 232 double ans, p, nul; in gamma_q_inv() local 236 gamma_inc_inv (&x, &ans, &nul, &p, &y, &i); in gamma_q_inv() 237 return ans; in gamma_q_inv() 249 double ans, p, nul; in gamma_p_inv() local 253 gamma_inc_inv (&x, &ans, &nul, &y, &p, &i); in gamma_p_inv() [all …]
|
/third_party/mindspore/tests/ut/python/nn/probability/bijector/ |
D | test_bijector.py | 173 ans = net(value) 176 ans = net(value) 179 ans = net(value) 181 ans = net(value) 182 assert ans.dtype == dtype.float32 184 ans = net(value) 185 assert ans.dtype == dtype.float16 194 ans = net(value) 197 ans = net(value) 200 ans = net(value) [all …]
|
D | test_softplus.py | 57 ans = net(x) 58 assert isinstance(ans, Tensor) 80 ans = net(x) 81 assert isinstance(ans, Tensor) 104 ans = net(x) 105 assert isinstance(ans, Tensor) 132 ans = net(x) 133 assert isinstance(ans, Tensor)
|
/third_party/flutter/skia/modules/pathkit/tests/ |
D | util.spec.js | 30 let ans = PathKit.cubicPtFromT(0.1, 0.5, 0.5, 0.1, tc[0]); 31 expect(ans).toBeTruthy(); 32 expect(ans.length).toBe(2); 33 expect(ans[0]).toBeCloseTo(tc[1][0]); 34 expect(ans[1]).toBeCloseTo(tc[1][1]);
|
/third_party/skia/modules/pathkit/tests/ |
D | util.spec.js | 30 let ans = PathKit.cubicPtFromT(0.1, 0.5, 0.5, 0.1, tc[0]); 31 expect(ans).toBeTruthy(); 32 expect(ans.length).toBe(2); 33 expect(ans[0]).toBeCloseTo(tc[1][0]); 34 expect(ans[1]).toBeCloseTo(tc[1][1]);
|