Home
last modified time | relevance | path

Searched refs:ans (Results 1 – 25 of 133) sorted by relevance

123456

/third_party/selinux/checkpolicy/
Dcheckpolicy.c391 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.py252 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/
Dtest_editmenu.py40 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/
Dtestdata_fr.txt19 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/
Dtestdata_fr.txt19 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/
Drunning_data_recorder.cc42 …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/
Dxmlcatalog.c103 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/
Dtest_bernoulli.py90 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 …]
Dtest_exponential.py79 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 …]
Dtest_cauchy.py83 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 …]
Dtest_geometric.py90 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 …]
Dtest_beta.py92 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/
Dbitpacking.h49 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/
Dtest_scalar_affine.py39 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()
Dtest_exp.py41 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()
Dtest_invert.py40 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()
Dtest_softplus.py39 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()
Dtest_power_transform.py42 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()
Dtest_gumbel_cdf.py41 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/
Dtest_9303.cpp53 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/
Dtest_gamma_hooks.hpp201 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/
Dtest_bijector.py173 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 …]
Dtest_softplus.py57 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/
Dutil.spec.js30 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/
Dutil.spec.js30 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]);

123456