Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dconvert_tensor_utils.cc70 auto int_data = static_cast<int *>(dst); in ShortToInt() local
72 int_data[i] = static_cast<int>(half_data[i]); in ShortToInt()
80 auto int_data = static_cast<const int *>(src); in IntToShort() local
83 half_data[i] = static_cast<int16_t>(int_data[i]); in IntToShort()
92 auto int_data = static_cast<int *>(dst); in LongToInt() local
94 int_data[i] = static_cast<int>(long_data[i]); in LongToInt()
102 auto int_data = static_cast<const int *>(src); in IntToLong() local
105 long_data[i] = static_cast<int64_t>(int_data[i]); in IntToLong()
/third_party/boost/libs/compute/test/
Dtest_function.cpp114 int int_data[] = { 2, 4, 6, 8 }; in BOOST_AUTO_TEST_CASE() local
115 compute::vector<int> input_ints(int_data, int_data + 4, queue); in BOOST_AUTO_TEST_CASE()
173 int int_data[] = { 1, 2, 3, 4 }; in BOOST_AUTO_TEST_CASE() local
174 compute::vector<int> int_vec(int_data, int_data + 4, queue); in BOOST_AUTO_TEST_CASE()
Dtest_zip_iterator.cpp113 int int_data[] = { 4, 7, 9 }; in BOOST_AUTO_TEST_CASE() local
114 boost::compute::vector<int> int_vector(int_data, int_data + 3, queue); in BOOST_AUTO_TEST_CASE()
Dtest_vector.cpp97 int int_data[] = { 1, 2, 3, 4, 5 }; in BOOST_AUTO_TEST_CASE() local
99 bc::copy(int_data, int_data + 5, int_vector.begin(), queue); in BOOST_AUTO_TEST_CASE()
Dtest_lambda.cpp458 int int_data[] = { 1, 3, 5, 7 }; in BOOST_AUTO_TEST_CASE() local
461 compute::vector<int> int_vector(int_data, int_data + 4, queue); in BOOST_AUTO_TEST_CASE()
/third_party/libsnd/tests/
Dlong_read_write_test.c48 static int int_data [BUFFER_LENGTH] ; variable
67 int_data [k] = (value & 1 ? -1 : 1) * value ; in main()
68 short_data [k] = int_data [k] ; in main()
69 float_data [k] = int_data [k] / 32000.0 ; in main()
70 double_data [k] = int_data [k] / 32000.0 ; in main()
77 int_lrw_test ("alac.caf", SF_FORMAT_CAF | SF_FORMAT_ALAC_32, int_data, ARRAY_LEN (int_data)) ; in main()
Dpcm_test.tpl104 int *int_data ;
111 int_data = data_in.i ;
117 int_data [k] = lrintf (float_data [k]) ;
120 if (fabs (int_data [k] - float_data [k]) > 1.0)
121 …ine %d: float : Incorrect sample (#%d : %f => %d).\n", __LINE__, k, float_data [k], int_data [k]) ;
Dfloating_point_test.tpl57 static int int_data [DFT_DATA_LENGTH] ;
Dcommand_test.c70 static int int_data [BUFFER_LEN] ; variable
684 test_write_int_or_die (file, 0, int_data, BUFFER_LEN, __LINE__) ; in truncate_test()
/third_party/boost/libs/compute/example/
Damd_cpp_kernel.cpp43 int int_data[] = { 1, 2, 3, 4}; in main() local
44 compute::vector<int> int_vector(int_data, int_data + 4, queue); in main()
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cTextureStorageMultisampleGetTexLevelParameterifvTests.hpp162 glw::GLint int_data; member in glcts::MultisampleTextureGetTexLevelParametervInvalidTextureTargetRejectedTest
178 glw::GLint int_data; member in glcts::MultisampleTextureGetTexLevelParametervInvalidValueArgumentRejectedTest
197 glw::GLint int_data; member in glcts::MultisampleTextureGetTexLevelParametervNegativeLodIsRejectedTest
Des31cTextureStorageMultisampleGetTexLevelParameterifvTests.cpp1173 , int_data(0) in MultisampleTextureGetTexLevelParametervInvalidTextureTargetRejectedTest()
1195 GL_TEXTURE_RED_TYPE, &int_data); in iterate()
1223 , int_data(0) in MultisampleTextureGetTexLevelParametervInvalidValueArgumentRejectedTest()
1245 GL_SIGNED_NORMALIZED /* invalid value */, &int_data); in iterate()
1279 , int_data(0) in MultisampleTextureGetTexLevelParametervNegativeLodIsRejectedTest()
1340 …LevelParameteriv(GL_TEXTURE_2D_MULTISAMPLE, -1 /* negative lod */, GL_TEXTURE_RED_TYPE, &int_data); in iterate()
/third_party/grpc/test/cpp/ext/filters/census/
Dstats_plugin_end2end_test.cc161 client_method_view.GetData().int_data(), in TEST_F()
165 EXPECT_THAT(server_method_view.GetData().int_data(), in TEST_F()
220 EXPECT_THAT(client_status_view.GetData().int_data(), in TEST_F()
222 EXPECT_THAT(server_status_view.GetData().int_data(), in TEST_F()
353 EXPECT_THAT(client_completed_rpcs_view.GetData().int_data(), in TEST_F()
356 EXPECT_THAT(server_completed_rpcs_view.GetData().int_data(), in TEST_F()
/third_party/grpc/src/cpp/server/load_reporter/
Dload_reporter.cc181 auto it_row = it_vd->second.int_data().find(tag_values); in GetRelatedViewDataRowInt()
182 GPR_ASSERT(it_row != it_vd->second.int_data().end()); in GetRelatedViewDataRowInt()
403 for (const auto& p : it->second.int_data()) { in ProcessViewDataCallStart()
425 for (const auto& p : it->second.int_data()) { in ProcessViewDataCallEnd()
476 for (const auto& p : it->second.int_data()) { in ProcessViewDataOtherCallMetrics()
/third_party/protobuf/src/google/protobuf/util/internal/testdata/
Doneofs.proto44 int32 int_data = 3; field
61 int32 int_data = 3; field
/third_party/boost/libs/spirit/example/qi/
Dreference.cpp283 struct int_data struct
295 struct transform_attribute<int_data, int, qi::domain> argument
298 static int& pre(int_data& d) { return d.i; } in pre()
299 static void post(int_data& val, int const& attr) {} in post()
300 static void fail(int_data&) {} in fail()
690 int_data d = { 0 }; in main()
/third_party/boost/libs/spirit/example/karma/
Dreference.cpp178 struct int_data struct
187 struct transform_attribute<int_data const, int, karma::domain> argument
190 static int pre(int_data const& d) { return d.i; } in pre()
641 int_data d = { 1 }; in main()
/third_party/mindspore/mindspore/ccsrc/utils/
Dtensorprint_utils.cc83 const int int_data = static_cast<int>(*data_ptr); in PrintScalarToString() local
84 *buf << int_data << ")\n"; in PrintScalarToString()
/third_party/python/Lib/test/
Dtest_base64.py18 int_data = memoryview(b"1234").cast('I')
19 self.assertRaises(TypeError, f, int_data)
121 int_data = memoryview(bytes_data).cast('I')
122 self.assertEqual(f(int_data), f(bytes_data))
/third_party/boost/libs/spirit/doc/qi/
Dauxiliary.qbk210 The example references data structure `int_data` which needs a specialization of
/third_party/boost/libs/spirit/doc/karma/
Dauxiliary.qbk138 The example references data structure `int_data` which needs a specialization of
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShadingLanguage420PackTests.cpp4562 static const GLint int_data[4] = { 1, 1, 1, 1 }; in prepareUniforms() local
4578 program.uniform("uni_left", Utils::INT, test_case.m_n_cols, test_case.m_n_rows, int_data); in prepareUniforms()
4579 program.uniform("uni_right", Utils::INT, test_case.m_n_cols, test_case.m_n_rows, int_data); in prepareUniforms()
15386 static const GLint int_data[4] = { int_value, int_value, int_value, int_value }; in prepareUniforms() local
15403 program.uniform("uni_variable", Utils::INT, 1 /* columns */, test_case.m_n_rows, int_data); in prepareUniforms()
15433 static const GLint int_data[4] = { int_value, int_value, int_value, int_value }; in prepareVertexBuffer() local
15462 data_ptr = (GLvoid*)int_data; in prepareVertexBuffer()
15463 data_size = sizeof(int_data); in prepareVertexBuffer()