Home
last modified time | relevance | path

Searched refs:num_elements (Results 1 – 25 of 238) sorted by relevance

12345678910

/third_party/unity/src/
Dunity.h269 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT_ARRAY_WITHIN((delta)… argument
270 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT8_ARRAY_WITHIN((delta)… argument
271 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT16_ARRAY_WITHIN((delta)… argument
272 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT32_ARRAY_WITHIN((delta)… argument
273 … expected, actual, num_elements) UNITY_TEST_ASSERT_INT64_ARRAY_WITHIN((delta)… argument
274 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT_ARRAY_WITHIN((delta)… argument
275 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT8_ARRAY_WITHIN((delta)… argument
276 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT16_ARRAY_WITHIN((delta)… argument
277 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT32_ARRAY_WITHIN((delta)… argument
278 … expected, actual, num_elements) UNITY_TEST_ASSERT_UINT64_ARRAY_WITHIN((delta)… argument
[all …]
Dunity_internals.h566 const UNITY_UINT32 num_elements,
591 const UNITY_UINT32 num_elements,
599 const UNITY_UINT32 num_elements,
614 const UNITY_UINT32 num_elements,
639 const UNITY_UINT32 num_elements,
659 const UNITY_UINT32 num_elements,
873num_elements, line, message) UnityAssertNumbersArrayWithin( (delta), (UNITY_INTER… argument
874num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT8 )(delta), (UNITY_INTERN… argument
875num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT16)(delta), (UNITY_INTERNA… argument
876num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT32)(delta), (UNITY_INTERNA… argument
[all …]
/third_party/cJSON/tests/unity/src/
Dunity.h240 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY(… argument
241 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY(… argument
242 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY(… argument
243 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY(… argument
244 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(… argument
245 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY(… argument
246 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY(… argument
247 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY(… argument
248 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY(… argument
249 …(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(… argument
[all …]
Dunity_internals.h474 const UNITY_UINT32 num_elements,
499 const UNITY_UINT32 num_elements,
507 const UNITY_UINT32 num_elements,
532 const UNITY_UINT32 num_elements,
552 const UNITY_UINT32 num_elements,
734num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UN… argument
735num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
736 …, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
737 …, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
738num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNI… argument
[all …]
/third_party/boost/libs/multi_array/test/
Dconstructors.cpp31 unsigned int num_elements) in check_shape() argument
33 BOOST_TEST(A.num_elements() == num_elements); in check_shape()
37 check_shape(A[0], ++sizes, ++strides, num_elements / A.size()); in check_shape()
64 size_type num_elements = 27; in main() local
74 check_shape(A, &sizes[0], strides, num_elements); in main()
78 check_shape(B, &sizes[0], strides, num_elements); in main()
82 check_shape(C, &sizes[0], strides, num_elements); in main()
89 size_type num_elements = 27; in main() local
94 check_shape(A, &sizes[0], col_strides, num_elements); in main()
99 check_shape(B, &sizes[0], col_strides, num_elements); in main()
[all …]
Dcompare.cpp29 const size_type num_elements = 27; in main() local
34 std::vector<double> vals(num_elements, 4.5); in main()
44 std::vector<double> vals(num_elements, 4.5); in main()
60 std::vector<double> valsA(num_elements, 4.5); in main()
61 std::vector<double> valsB(num_elements, 2.5); in main()
108 A.assign(valsA,valsA+num_elements); in main()
109 B.assign(valsB,valsB+num_elements); in main()
Dstorage_order.cpp55 const int num_elements = 24; in main() local
64 A.assign(data_col,data_col+num_elements); in main()
85 A.assign(data_col,data_col+num_elements); in main()
116 A.assign(data_arb,data_arb+num_elements); in main()
149 A.assign(data_arb,data_arb+num_elements); in main()
/third_party/mesa3d/src/util/
Du_idalloc.c42 if (new_num_elements > buf->num_elements) { in util_idalloc_resize()
44 memset(&buf->data[buf->num_elements], 0, in util_idalloc_resize()
45 (new_num_elements - buf->num_elements) * sizeof(*buf->data)); in util_idalloc_resize()
46 buf->num_elements = new_num_elements; in util_idalloc_resize()
68 unsigned num_elements = buf->num_elements; in util_idalloc_alloc() local
70 for (unsigned i = buf->lowest_free_idx; i < num_elements; i++) { in util_idalloc_alloc()
81 util_idalloc_resize(buf, MAX2(num_elements, 1) * 2); in util_idalloc_alloc()
83 buf->lowest_free_idx = num_elements; in util_idalloc_alloc()
84 buf->data[num_elements] |= 1; in util_idalloc_alloc()
85 return num_elements * 32; in util_idalloc_alloc()
[all …]
Du_idalloc.h48 unsigned num_elements; /* number of allocated elements of "data" */ member
73 return id / 32 < buf->num_elements && in util_idalloc_exists()
78 for (uint32_t i = 0, mask = (buf)->num_elements ? (buf)->data[0] : 0, id, \
79 count = (buf)->num_elements; \
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dlocal_response_norm_impl.cu23 const size_t channels, const size_t num_elements, float *scale) { in ComputeScaleNHWC() argument
24 …for (size_t pos = blockIdx.x * blockDim.x + threadIdx.x; pos < num_elements; pos += blockDim.x * g… in ComputeScaleNHWC()
39 …alResponseNormNHWC(const T *input, const float *scale, const float beta, const size_t num_elements, in LocalResponseNormNHWC() argument
41 …for (size_t pos = blockIdx.x * blockDim.x + threadIdx.x; pos < num_elements; pos += blockDim.x * g… in LocalResponseNormNHWC()
51 const size_t num_elements, T *dx) { in LocalResponseNormGradNHWC() argument
52 …for (size_t pos = blockIdx.x * blockDim.x + threadIdx.x; pos < num_elements; pos += blockDim.x * g… in LocalResponseNormGradNHWC()
69 const float beta, const size_t channels, const size_t num_elements, float *scale, T *output, in CalLocalResponseNormNHWC() argument
71 …ComputeScaleNHWC<<<GET_BLOCKS(num_elements), GET_THREADS, 0, cuda_stream>>>(input, depth_radius, b… in CalLocalResponseNormNHWC()
72 channels, num_elements, scale); in CalLocalResponseNormNHWC()
73 …LocalResponseNormNHWC<<<GET_BLOCKS(num_elements), GET_THREADS, 0, cuda_stream>>>(input, scale, bet… in CalLocalResponseNormNHWC()
[all …]
Dunique_impl.cu30 int CalUnique(const T *input, int num_elements, S *input_index, S *sorted_index, T *output, S *inde… in CalUnique() argument
35 thrust::device_pointer_cast(sorted_index) + num_elements); in CalUnique()
37 thrust::device_pointer_cast(input) + num_elements, in CalUnique()
41 thrust::device_pointer_cast(output) + num_elements, in CalUnique()
45 thrust::device_pointer_cast(output) + num_elements, in CalUnique()
54 thrust::device_pointer_cast(input_index) + num_elements, in CalUnique()
58 thrust::device_pointer_cast(input_index) + num_elements, in CalUnique()
64 thrust::device_pointer_cast(output) + num_elements); in CalUnique()
69 template int CalUnique<float, int>(const float *input, int num_elements, int *input_index, int *sor…
71 template int CalUnique<half, int>(const half *input, int num_elements, int *input_index, int *sorte…
[all …]
/third_party/mindspore/tests/ut/cpp/dataset/
Dtensorshape_test.cc113 int32_t num_elements = 0; in TEST_F() local
118 num_elements = 4; in TEST_F()
119 Status rc = c1.MaterializeTensorShape(num_elements, &generated_shape1); in TEST_F()
128 num_elements = 5; in TEST_F()
129 rc = c2.MaterializeTensorShape(num_elements, &generated_shape2); in TEST_F()
138 num_elements = 12; in TEST_F()
139 rc = c3.MaterializeTensorShape(num_elements, &generated_shape3); in TEST_F()
148 num_elements = 24; in TEST_F()
149 rc = c4.MaterializeTensorShape(num_elements, &generated_shape4); in TEST_F()
158 num_elements = 24; in TEST_F()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/meta/
Dshard_pk_sample.cc25 ShardPkSample::ShardPkSample(const std::string &category_field, int64_t num_elements, int64_t num_s… in ShardPkSample() argument
26 : ShardCategory(category_field, num_elements, std::numeric_limits<int64_t>::max(), true), in ShardPkSample()
30 ShardPkSample::ShardPkSample(const std::string &category_field, int64_t num_elements, int64_t num_c… in ShardPkSample() argument
32 …: ShardCategory(category_field, num_elements, num_categories, true), shuffle_(false), num_samples_… in ShardPkSample()
34 ShardPkSample::ShardPkSample(const std::string &category_field, int64_t num_elements, int64_t num_c… in ShardPkSample() argument
36 …: ShardCategory(category_field, num_elements, num_categories, true), shuffle_(true), num_samples_(… in ShardPkSample()
Dshard_category.cc21 …dCategory(const std::vector<std::pair<std::string, std::string>> &categories, int64_t num_elements, in ShardCategory() argument
25 num_elements_(num_elements), in ShardCategory()
29 ShardCategory::ShardCategory(const std::string &category_field, int64_t num_elements, int64_t num_c… in ShardCategory() argument
33 num_elements_(num_elements),
/third_party/mesa3d/src/gallium/frontends/va/
Dbuffer.c40 unsigned int size, unsigned int num_elements, void *data, in vlVaCreateBuffer() argument
55 buf->num_elements = num_elements; in vlVaCreateBuffer()
56 buf->data = MALLOC(size * num_elements); in vlVaCreateBuffer()
64 memcpy(buf->data, data, size * num_elements); in vlVaCreateBuffer()
76 unsigned int num_elements) in vlVaBufferSetNumElements() argument
94 buf->data = REALLOC(buf->data, buf->size * buf->num_elements, in vlVaBufferSetNumElements()
95 buf->size * num_elements); in vlVaBufferSetNumElements()
96 buf->num_elements = num_elements; in vlVaBufferSetNumElements()
224 unsigned int *size, unsigned int *num_elements) in vlVaBufferInfo() argument
241 *num_elements = buf->num_elements; in vlVaBufferInfo()
[all …]
/third_party/boost/libs/container/bench/
Dbench_adaptive_node_pool.cpp134 void list_test_template(std::size_t num_iterations, std::size_t num_elements, bool csv_output) in list_test_template() argument
149 l.insert(l.end(), num_elements, MyInt(r)); in list_test_template()
171 std::size_t n = num_elements; in list_test_template()
194 << num_elements in list_test_template()
196 << float(tinsert)/(num_iterations*num_elements) in list_test_template()
200 … << float(insert_stats.system_bytes)/(num_iterations*num_elements*sizeof_node)*100.0-100.0 in list_test_template()
204 << (float(insert_inuse)/(num_iterations*num_elements*sizeof_node)*100.0)-100.0 in list_test_template()
206 std::cout << float(terase)/(num_iterations*num_elements) in list_test_template()
217 …(ns): " << float(tinsert)/(num_iterations*num_elements) << '\t' << float(terase)/(num_iterations* in list_test_template()
219 …1024*1024) << "(" << float(insert_stats.system_bytes)/(num_iterations*num_elements*sizeof_node)*10… in list_test_template()
[all …]
Dbench_alloc.cpp31 void allocation_timing_test(unsigned int num_iterations, unsigned int num_elements) in allocation_timing_test() argument
38 << " Iterations/Elements: " << num_iterations << "/" << num_elements << '\n' in allocation_timing_test()
56 first_mem = dlmalloc_malloc(sizeof(POD)*num_elements*3/2); in allocation_timing_test()
59 first_mem = dlmalloc_malloc(sizeof(POD)*num_elements*3/2); in allocation_timing_test()
66 for(size_t e = capacity + 1; e < num_elements; ++e){ in allocation_timing_test()
121 << float(nseconds)/(num_iterations*num_elements) in allocation_timing_test()
Dbench_alloc_shrink_to_fit.cpp74 void vector_test_template(unsigned int num_iterations, unsigned int num_elements, bool csv_output) in vector_test_template() argument
92 bc::vector<MyInt, IntAllocator> v(num_elements); in vector_test_template()
95 for(unsigned int e = num_elements; e != 0; e -= Step){ in vector_test_template()
113 << num_elements in vector_test_template()
117 << float(nseconds)/(num_iterations*num_elements) in vector_test_template()
127 << float(nseconds)/(num_iterations*num_elements) in vector_test_template()
Dbench_alloc_expand_bwd.cpp99 void vector_test_template(unsigned int num_iterations, unsigned int num_elements, bool csv_output) in vector_test_template() argument
113 first_mem = bc::dlmalloc_malloc(sizeof(MyInt)*num_elements*3/2); in vector_test_template()
117 for(unsigned int e = 0; e != num_elements; ++e){ in vector_test_template()
140 << num_elements in vector_test_template()
144 << float(nseconds)/(num_iterations*num_elements) in vector_test_template()
158 << float(nseconds)/(num_iterations*num_elements) in vector_test_template()
/third_party/skia/third_party/externals/tint/src/sem/
Dconstant.cc28 const Type* ElemType(const Type* ty, size_t num_elements) { in ElemType() argument
31 if (num_elements != 1) { in ElemType()
34 << ty->type_name() << "' num_elements: " << num_elements; in ElemType()
39 if (num_elements != vec->Width()) { in ElemType()
42 << ty->type_name() << "' num_elements: " << num_elements; in ElemType()
/third_party/boost/boost/numeric/odeint/algebra/
Dmulti_array_algebra.hpp40 detail::for_each1( s1.data() , s1.data() + s1.num_elements() , op ); in for_each1()
46 detail::for_each2( s1.data() , s1.data() + s1.num_elements() , s2.data() , op ); in for_each2()
52 detail::for_each3( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , op ); in for_each3()
58 …detail::for_each4( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() ,… in for_each4()
64 …detail::for_each5( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() ,… in for_each5()
70 …detail::for_each6( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() ,… in for_each6()
76 …detail::for_each7( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() ,… in for_each7()
82 …detail::for_each8( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() ,… in for_each8()
88 …detail::for_each9( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() ,… in for_each9()
94 …detail::for_each10( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() … in for_each10()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dtf_reader_op.cc360 int32_t num_elements = 0; in LoadFeature() local
371 RETURN_IF_NOT_OK(LoadBytesList(current_col, column_values_list, &num_elements, &ts)); in LoadFeature()
376 RETURN_IF_NOT_OK(LoadFloatList(current_col, column_values_list, &num_elements, &float_array)); in LoadFeature()
383 RETURN_IF_NOT_OK(current_col.MaterializeTensorShape(num_elements, &current_shape)); in LoadFeature()
388 RETURN_IF_NOT_OK(LoadIntListSwitch(current_col, column_values_list, &num_elements, &ts)); in LoadFeature()
407 int32_t *num_elements, std::shared_ptr<Tensor> *tensor) { in LoadBytesList() argument
420 *num_elements = bytes_list.value_size(); in LoadBytesList()
424 RETURN_IF_NOT_OK(current_col.MaterializeTensorShape(*num_elements, &shape)); in LoadBytesList()
467 RETURN_IF_NOT_OK(current_col.MaterializeTensorShape((*num_elements) * pad_size, &current_shape)); in LoadBytesList()
474 int32_t *num_elements, std::unique_ptr<float[]> *float_array) { in LoadFloatList() argument
[all …]
/third_party/unity/docs/
DUnityAssertionsReference.md429 `expected` and `actual` parameters are both arrays. `num_elements` specifies the
441 ##### `TEST_ASSERT_EQUAL_INT_ARRAY (expected, actual, num_elements)`
443 ##### `TEST_ASSERT_EQUAL_INT8_ARRAY (expected, actual, num_elements)`
445 ##### `TEST_ASSERT_EQUAL_INT16_ARRAY (expected, actual, num_elements)`
447 ##### `TEST_ASSERT_EQUAL_INT32_ARRAY (expected, actual, num_elements)`
449 ##### `TEST_ASSERT_EQUAL_INT64_ARRAY (expected, actual, num_elements)`
451 ##### `TEST_ASSERT_EQUAL_UINT_ARRAY (expected, actual, num_elements)`
453 ##### `TEST_ASSERT_EQUAL_UINT8_ARRAY (expected, actual, num_elements)`
455 ##### `TEST_ASSERT_EQUAL_UINT16_ARRAY (expected, actual, num_elements)`
457 ##### `TEST_ASSERT_EQUAL_UINT32_ARRAY (expected, actual, num_elements)`
[all …]
/third_party/boost/boost/gil/concepts/
Dcolor_base.hpp150 static const int num_elements = size<ColorBase>::value; in constraints() local
152 using TN = typename kth_element_type<ColorBase, num_elements - 1>::type; in constraints()
153 using RN = typename kth_element_const_reference_type<ColorBase, num_elements - 1>::type; in constraints()
155 RN r = gil::at_c<num_elements - 1>(cb); in constraints()
160 semantic_at_c<num_elements-1>(cb); in constraints()
233 static const int num_elements = size<ColorBase>::value; in constraints() local
236 using TN = typename kth_element_type<ColorBase, num_elements - 1>::type; in constraints()
/third_party/mindspore/mindspore/core/ops/
Dtensor_list_stack.cc26 void TensorListStack::Init(const int64_t num_elements, const int64_t element_dtype) { in Init() argument
27 this->set_num_elements(num_elements); in Init()
31 void TensorListStack::set_num_elements(const int64_t num_elements) { in set_num_elements() argument
32 (void)this->AddAttr(kNumElements, MakeValue(num_elements)); in set_num_elements()

12345678910