Home
last modified time | relevance | path

Searched refs:result2 (Results 1 – 25 of 243) sorted by relevance

12345678910

/third_party/mindspore/tests/syntax/simple_expression/
Dtest_math_ops.py40 result2 = add_net(input_x, input_y)
43 assert result2 == expect
51 result2 = add_net(input_x, input_y)
54 assert np.all(result2.asnumpy() == expect)
62 result2 = add_net(input_x, input_y)
65 assert np.all(result2.asnumpy() == expect)
73 result2 = add_net(input_x, input_y)
76 assert np.all(result2.asnumpy() == expect)
84 result2 = add_net(input_x, input_y)
87 assert np.all(result2.asnumpy() == expect)
[all …]
Dtest_assignment_ops.py203 result2 = 5
205 assignadd = AssignAdd(result2, input_x)
206 result2 = assignadd()
209 assert np.all(result2 == expect)
215 result2 = Tensor(np.array([[4, -2], [2, 17]]))
217 result2 = AssignAdd(result2, input_x)()
220 assert np.all(result2.asnumpy() == expect)
226 result2 = Tensor(np.array([[4, -2], [2, 17]])).astype(np.float16)
228 result2 = AssignAdd(result2, input_x)()
231 assert np.all(result2.asnumpy() == expect)
[all …]
/third_party/typescript/tests/baselines/reference/convertToAsyncFunction/
DconvertToAsyncFunction_MultipleThens.ts9 function res2(result2){
10 console.log(result2);
16 const result2 = await res(result); constant
17 return res2(result2);
22 function res2(result2){
23 console.log(result2);
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DTimerQueriesTest.cpp142 GLuint64 result2 = 0; in TEST_P() local
144 glGetQueryObjectui64vEXT(query2, GL_QUERY_RESULT_EXT, &result2); in TEST_P()
152 std::cout << "Elapsed time: " << result2 << " costly quad" << std::endl; in TEST_P()
156 EXPECT_LT(0ul, result2); in TEST_P()
162 EXPECT_LT(result2, 1000000000ul); in TEST_P()
385 GLuint64 result2 = 0; in TEST_P() local
393 glGetQueryObjectui64vEXT(contexts[1].query, GL_QUERY_RESULT_EXT, &result2); in TEST_P()
404 std::cout << "Elapsed time: " << result2 << " costly quad" << std::endl; in TEST_P()
406 EXPECT_LT(0ul, result2); in TEST_P()
408 EXPECT_LT(result2, 1000000000ul); in TEST_P()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DTimerQueriesTest.cpp148 GLuint64 result2 = 0; in TEST_P() local
150 glGetQueryObjectui64vEXT(query2, GL_QUERY_RESULT_EXT, &result2); in TEST_P()
158 std::cout << "Elapsed time: " << result2 << " costly quad" << std::endl; in TEST_P()
162 EXPECT_LT(0ul, result2); in TEST_P()
168 EXPECT_LT(result2, 1000000000ul); in TEST_P()
394 GLuint64 result2 = 0; in TEST_P() local
402 glGetQueryObjectui64vEXT(contexts[1].query, GL_QUERY_RESULT_EXT, &result2); in TEST_P()
413 std::cout << "Elapsed time: " << result2 << " costly quad" << std::endl; in TEST_P()
415 EXPECT_LT(0ul, result2); in TEST_P()
417 EXPECT_LT(result2, 1000000000ul); in TEST_P()
[all …]
/third_party/boost/boost/iostreams/
Dtee.hpp67 std::streamsize result2 = iostreams::write(this->component(), s, result); in read() local
68 (void) result2; // Suppress 'unused variable' warning. in read()
69 BOOST_ASSERT(result == result2); in read()
78 std::streamsize result2 = iostreams::write(this->component(), s, result); in write() local
79 (void) result2; // Suppress 'unused variable' warning. in write()
80 BOOST_ASSERT(result == result2); in write()
158 std::streamsize result2 = iostreams::write(sink_, s, result1); in read() local
160 (void) result2; in read()
161 BOOST_ASSERT(result1 == result2); in read()
173 std::streamsize result2 = iostreams::write(sink_, s, n); in write() local
[all …]
/third_party/boost/libs/algorithm/minmax/example/
Dminmax_ex.cpp30 pair< iterator, iterator > result2 = boost::minmax_element(L.begin(), L.end()); in main() local
32 cout << "The smallest element is " << *(result2.first) << endl; in main()
33 cout << "The largest element is " << *(result2.second) << endl; in main()
35 assert( result2.first == std::min_element(L.begin(), L.end()) ); in main()
36 assert( result2.second == std::max_element(L.begin(), L.end()) ); in main()
/third_party/glib/glib/tests/
Dconvert.c146 gunichar *result, *result2, *result3; in check_utf8_to_ucs4() local
172 result2 = g_utf8_to_ucs4 (utf8, -1, &items_read2, &items_written2, &error2); in check_utf8_to_ucs4()
175 g_assert_cmpint (!!result, ==, !!result2); in check_utf8_to_ucs4()
179 g_assert (result[i] == result2[i]); in check_utf8_to_ucs4()
181 g_free (result2); in check_utf8_to_ucs4()
236 gchar *result, *result2, *result3; in check_ucs4_to_utf8() local
248 result2 = g_ucs4_to_utf8 (ucs4, -1, &items_read2, &items_written2, &error2); in check_ucs4_to_utf8()
252 g_assert_cmpint (!!result, ==, !!result2); in check_ucs4_to_utf8()
255 g_assert_cmpstr (result, ==, result2); in check_ucs4_to_utf8()
257 g_free (result2); in check_ucs4_to_utf8()
[all …]
/third_party/mindspore/tests/ut/python/metrics/
Dtest_topk.py57 result2 = topk(x, y2)
59 assert math.isclose(result2, 2 / 3)
82 result2 = topk(x, y2)
84 assert math.isclose(result2, 1 / 3)
100 result2 = topk(x, y2)
102 assert math.isclose(result2, 2 / 3)
/third_party/boost/boost/math/special_functions/detail/
Dbessel_derivatives_linear.hpp43 T result2 = boost::math::detail::cyl_bessel_i_imp<T>(v + 1, x, pol); in bessel_i_derivative_linear() local
44 if(result2 >= tools::max_value<T>() - result) in bessel_i_derivative_linear()
45 return result2; // result is infinite in bessel_i_derivative_linear()
46 return (result + result2) / 2; in bessel_i_derivative_linear()
55 T result2 = boost::math::detail::cyl_bessel_k_imp<T>(v + 1, x, tag, pol); in bessel_k_derivative_linear() local
56 if(result2 >= tools::max_value<T>() - result) in bessel_k_derivative_linear()
57 return -result2; // result is infinite in bessel_k_derivative_linear()
58 return (result + result2) / -2; in bessel_k_derivative_linear()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_hints.c79 char *result2; in hints_getHint() local
85 result2 = (char *)SDL_GetHint((char *)_HintsVerbose[i]); in hints_getHint()
88 (result1 == NULL && result2 == NULL) || (SDL_strcmp(result1, result2) == 0), in hints_getHint()
91 (result2 == NULL) ? "null" : result2); in hints_getHint()
Dtestautomation_timer.c74 Uint32 result2; in timer_delayAndGetTicks() local
96 result2 = SDL_GetTicks(); in timer_delayAndGetTicks()
98 SDLTest_AssertCheck(result2 > 0, "Check result value, expected: >0, got: %d", result2); in timer_delayAndGetTicks()
99 difference = result2 - result; in timer_delayAndGetTicks()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/test/
DtestLockFreeQueue.cpp66 int result2; member in TestLockFreeQueue
92 q.pop(result2); in TEST_F()
94 ASSERT_EQ(result2, 456); in TEST_F()
112 q.pop(result2); in TEST_F()
113 ASSERT_EQ(result2, 234); in TEST_F()
136 q.peek(result2); in TEST_F()
137 ASSERT_EQ(result2, 456); in TEST_F()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/
Dreduce.cl76 FLT4 result2 = (FLT4)(0.f);
77 result2.x = dot(TO_FLT4(result), (FLT4)(1.f));
78 WRITE_IMAGE(dst_data, (int2)(0, X), result2);
105 FLT4 result2 = (FLT4)(0.f);
106 result2.x = dot(TO_FLT4(result), (FLT4)(1.f));
107 WRITE_IMAGE(dst_data, (int2)(0, X), result2);
166 FLT4 result2 = (FLT4)(0.f);
167 result2.x = dot(result, (FLT4)(1.f));
168 WRITE_IMAGE(dst_data, (int2)(0, X), result2);
196 FLT4 result2 = (FLT4)(0.f);
[all …]
/third_party/typescript/tests/baselines/reference/
DtypeGuardsWithInstanceOf.js4 var result2!: I; variable
7 result = result2;
46 var result2; variable
48 result = result2;
DtypeGuardsWithInstanceOf.types8 var result2!: I;
9 >result2 : I
18 result = result2;
19 >result = result2 : I
21 >result2 : I
DtypeGuardsWithInstanceOf.symbols10 var result2!: I;
11 >result2 : Symbol(result2, Decl(typeGuardsWithInstanceOf.ts, 2, 3))
18 result = result2;
20 >result2 : Symbol(result2, Decl(typeGuardsWithInstanceOf.ts, 2, 3))
/third_party/boost/libs/math/doc/graphs/
Dbessel_i0_errors.cpp42 mp_type result2 = boost::math::cyl_bessel_i(0, input2); in test_type() local
43 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type()
44 if(result2 < mp_type(result)) in test_type()
89 mp_type result2 = boost::math::cyl_bessel_i(0, input2); in test_type() local
90 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type()
93 if(result2 > mp_type((std::numeric_limits<T>::max)())) in test_type()
96 …ad result at x = " << input << " result = " << result << " true result = " << result2 << std::endl; in test_type()
98 if(result2 < mp_type(result)) in test_type()
Dbessel_i1_errors.cpp42 mp_type result2 = boost::math::cyl_bessel_i(1, input2); in test_type() local
43 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type()
44 if(result2 < mp_type(result)) in test_type()
93 mp_type result2 = boost::math::cyl_bessel_i(1, input2); in test_type() local
94 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type()
97 if(result2 > mp_type((std::numeric_limits<T>::max)())) in test_type()
100 …ad result at x = " << input << " result = " << result << " true result = " << result2 << std::endl; in test_type()
102 if(result2 < mp_type(result)) in test_type()
/third_party/icu/icu4c/source/samples/citer/
Dciter.cpp70 UnicodeString result1, result2; in TestUChariter() local
73 test2->getText(result2); in TestUChariter()
74 if (result1 != result2) { in TestUChariter()
135 UnicodeString result1, result2; in TestStringiter() local
138 test2->getText(result2); in TestStringiter()
139 if (result1 != result2) { in TestStringiter()
/third_party/flutter/skia/third_party/externals/icu/source/samples/citer/
Dciter.cpp70 UnicodeString result1, result2; in TestUChariter() local
73 test2->getText(result2); in TestUChariter()
74 if (result1 != result2) { in TestUChariter()
135 UnicodeString result1, result2; in TestStringiter() local
138 test2->getText(result2); in TestStringiter()
139 if (result1 != result2) { in TestStringiter()
/third_party/skia/third_party/externals/icu/source/samples/citer/
Dciter.cpp70 UnicodeString result1, result2; in TestUChariter() local
73 test2->getText(result2); in TestUChariter()
74 if (result1 != result2) { in TestUChariter()
135 UnicodeString result1, result2; in TestStringiter() local
138 test2->getText(result2); in TestStringiter()
139 if (result1 != result2) { in TestStringiter()
/third_party/skia/tests/graphite/
DUniformCacheTest.cpp66 sk_sp<UniformData> result2 = cache->findOrCreate(ud2); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local
67 REPORTER_ASSERT(reporter, result2->id() != UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
69 REPORTER_ASSERT(reporter, result2->id() == result1->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
70 sk_sp<UniformData> lookup = cache->lookup(result2->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
71 REPORTER_ASSERT(reporter, lookup->id() == result2->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
/third_party/boost/libs/phoenix/test/regression/
Dbug4853.cpp50 std::vector<int> result2; in range_test_complex() local
65 boost::push_back(result2, source | transformed(phoenix::bind(&Foo::value_, *arg1)) | uniqued); in range_test_complex()
67 for(unsigned i = 0; i < result2.size(); ++i) in range_test_complex()
68 std::cout << result2[i] << "\n"; in range_test_complex()
/third_party/boost/libs/asio/test/properties/cpp03/
Dquery_static.cpp54 int result2 = boost::asio::query(o2, prop()); in main() local
55 assert(result2 == 123); in main()
56 (void)result2; in main()

12345678910