Home
last modified time | relevance | path

Searched refs:shape (Results 1 - 25 of 88) sorted by relevance

1234

/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/
H A DExecutorTest.cpp99 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
127 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
155 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
184 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), dimensions, quantParam, in HWTEST_F()
212 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
240 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape in HWTEST_F()
299 int32_t shape[4] = {1, 100, 100, 11}; HWTEST_F() local
334 int32_t shape[4] = {1, 1, 1, 1}; //minInputDims HWTEST_F() local
369 int32_t shape[4] = {1, 100, 100, 10}; //maxInputDims HWTEST_F() local
[all...]
H A DMemoryTest.cpp561 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
588 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
638 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
665 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
692 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape in HWTEST_F()
[all...]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/checkbox/
H A Dcheckbox_shape_test.cpp22 int32_t shape = ArkUI_CHECKBOX_SHAPE_ROUNDED_SQUARE; in TestCheckboxShape001() local
23 ArkUI_NumberValue shape_value[] = {{.i32 = shape}}; in TestCheckboxShape001()
27 ASSERT_EQ(nodeAPI->getAttribute(checkbox, NODE_CHECKBOX_SHAPE)->value[PARAM_0].i32, shape); in TestCheckboxShape001()
34 int32_t shape = ArkUI_CHECKBOX_SHAPE_CIRCLE; in TestCheckboxShape002() local
35 ArkUI_NumberValue shape_value[] = {{.i32 = shape}}; in TestCheckboxShape002()
39 ASSERT_EQ(nodeAPI->getAttribute(checkbox, NODE_CHECKBOX_SHAPE)->value[PARAM_0].i32, shape); in TestCheckboxShape002()
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/
H A DExecutorTest.cpp99 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
127 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
155 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
184 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), dimensions, quantParam, in HWTEST_F()
212 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
240 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape in HWTEST_F()
[all...]
H A DMemoryTest.cpp561 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
588 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
638 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
665 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
692 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape in HWTEST_F()
[all...]
/test/xts/acts/ai/nncore/opstest/src/
H A Dscatter_nd_test.cpp37 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, sizeof(float)}; member
40 .operands = {indices, updates, shape, output},
58 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 2*sizeof(float)}; member
61 .operands = {indices, updates, shape, output},
79 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 2*sizeof(float)}; member
82 .operands = {indices, updates, shape, output},
100 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
103 .operands = {indices, updates, shape, output},
238 scatterNdModel.shape, scatterNdModel.output}; in HWTEST_F()
258 graphArgs.operands = {scatterNdModel.indices, scatterNdModel.updates, scatterNdModel.shape, in HWTEST_F()
[all...]
H A Dcrop_test.cpp37 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
42 .operands = {input, shape, output, axis, offsets},
60 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
65 .operands = {input, shape, output, axis, offsets},
83 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
88 .operands = {input, shape, output, axis, offsets},
193 graphArgs.operands = {cropModel.input, cropModel.input, cropModel.shape, cropModel.output, in HWTEST_F()
215 graphArgs.operands = {cropModel.input, cropModel.shape, cropModel.output, cropModel.output, in HWTEST_F()
240 graphArgs.operands = {cropModel.input, cropModel.shape, cropModel.output, cropModel.axis, in HWTEST_F()
317 tensorDesc = createTensorDesc(operandTem.shape in HWTEST_F()
[all...]
H A Dbroadcast_to_test.cpp34 OHNNOperandTest shape = {OH_NN_INT64, OH_NN_BROADCAST_TO_SHAPE, {2}, &shapeValue, 2*sizeof(int64_t)}; member
36 .operands = {input, output, shape},
51 OHNNOperandTest shape = {OH_NN_INT64, OH_NN_BROADCAST_TO_SHAPE, {2}, &shapeValue, 2*sizeof(int64_t)}; member
53 .operands = {input, output, shape},
68 OHNNOperandTest shape = {OH_NN_INT64, OH_NN_BROADCAST_TO_SHAPE, {2}, &shapeValue, 2*sizeof(int64_t)}; member
70 .operands = {input, output, shape},
176 broadcastToModel.output, broadcastToModel.shape}; in HWTEST_F()
198 broadcastToModel.output, broadcastToModel.shape}; in HWTEST_F()
222 graphArgs.operands = {broadcastToModel.input, broadcastToModel.output, broadcastToModel.shape, activation}; in HWTEST_F()
298 tensorDesc = createTensorDesc(operandTem.shape in HWTEST_F()
[all...]
H A Dnncore_utils.cpp28 NN_TensorDesc* createTensorDesc(const int32_t* shape, size_t shapeNum, OH_NN_DataType dataType, OH_NN_Format format) in createTensorDesc() argument
42 if (shape != nullptr) { in createTensorDesc()
43 ret = OH_NNTensorDesc_SetShape(tensorDescTmp, shape, shapeNum); in createTensorDesc()
98 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildSingleOpGraph()
99 (uint32_t) operandTem.shape.size(), in BuildSingleOpGraph()
H A Dspace_to_depth_test.cpp346 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
347 (uint32_t) operandTem.shape.size(), in HWTEST_F()
383 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
384 (uint32_t) operandTem.shape.size(), in HWTEST_F()
419 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
420 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dswish_test.cpp285 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
286 (uint32_t) operandTem.shape.size(), in HWTEST_F()
321 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
322 (uint32_t) operandTem.shape.size(), in HWTEST_F()
356 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
357 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dround_test.cpp243 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
244 (uint32_t) operandTem.shape.size(), in HWTEST_F()
279 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
280 (uint32_t) operandTem.shape.size(), in HWTEST_F()
314 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
315 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dsquare_test.cpp243 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
244 (uint32_t) operandTem.shape.size(), in HWTEST_F()
279 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
280 (uint32_t) operandTem.shape.size(), in HWTEST_F()
314 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
315 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dsin_test.cpp243 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
244 (uint32_t) operandTem.shape.size(), in HWTEST_F()
279 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
280 (uint32_t) operandTem.shape.size(), in HWTEST_F()
314 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
315 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dquant_dtype_cast_test.cpp309 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
310 (uint32_t) operandTem.shape.size(), in HWTEST_F()
346 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
347 (uint32_t) operandTem.shape.size(), in HWTEST_F()
382 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
383 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dnot_equal_test.cpp337 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
338 (uint32_t) operandTem.shape.size(), in HWTEST_F()
373 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
374 (uint32_t) operandTem.shape.size(), in HWTEST_F()
408 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
409 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dpow_test.cpp309 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
310 (uint32_t) operandTem.shape.size(), in HWTEST_F()
345 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
346 (uint32_t) operandTem.shape.size(), in HWTEST_F()
380 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
381 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dreciprocal_test.cpp285 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
286 (uint32_t) operandTem.shape.size(), in HWTEST_F()
321 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
322 (uint32_t) operandTem.shape.size(), in HWTEST_F()
356 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
357 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Drank_test.cpp242 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
243 (uint32_t) operandTem.shape.size(), in HWTEST_F()
278 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
279 (uint32_t) operandTem.shape.size(), in HWTEST_F()
313 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
314 (uint32_t) operandTem.shape.size(), in HWTEST_F()
H A Dlogical_and_test.cpp383 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
384 (uint32_t) operandTem.shape.size(), in HWTEST_F()
419 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
420 (uint32_t) operandTem.shape.size(), in HWTEST_F()
454 tensorDesc = createTensorDesc(operandTem.shape.data(), in HWTEST_F()
455 (uint32_t) operandTem.shape.size(), in HWTEST_F()
/test/xts/acts/ai/neural_network_runtime/v2_0/common/
H A Dnnrt_utils.cpp37 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildMultiOpGraph()
38 operandTem.shape.data(), quantParam, operandTem.type}; in BuildMultiOpGraph()
86 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildSingleOpGraph()
87 operandTem.shape.data(), quantParam, operandTem.type}; in BuildSingleOpGraph()
226 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecuteGraphMock()
227 operandTem.shape.data(), in ExecuteGraphMock()
269 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecutorWithMemory()
270 operandTem.shape.data(), in ExecutorWithMemory()
/test/xts/acts/ai/neural_network_runtime/v1_0/common/
H A Dnnrt_utils.cpp37 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildMultiOpGraph()
38 operandTem.shape.data(), quantParam, operandTem.type}; in BuildMultiOpGraph()
86 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildSingleOpGraph()
87 operandTem.shape.data(), quantParam, operandTem.type}; in BuildSingleOpGraph()
226 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecuteGraphMock()
227 operandTem.shape.data(), in ExecuteGraphMock()
269 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecutorWithMemory()
270 operandTem.shape.data(), in ExecutorWithMemory()
/test/xts/acts/ai/nncore/nncoretest/src/
H A DHdiTensorDescTest.cpp151 * @tc.desc: 设置TensorDescShape,shape为空
170 int32_t* shape = nullptr; in HWTEST_F() local
171 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNTensorDesc_GetShape(nullptr, &shape, &shapeLength)); in HWTEST_F()
176 * @tc.desc: 获取TensorDescShape,未设置shape
184 int32_t* shape = nullptr; in HWTEST_F() local
185 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_GetShape(tensorDesc, &shape, &shapeLength)); in HWTEST_F()
186 ASSERT_EQ(nullptr, shape); in HWTEST_F()
202 int32_t* shape = nullptr; in HWTEST_F() local
203 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_GetShape(tensorDesc, &shape, &shapeLength)); in HWTEST_F()
204 ASSERT_EQ(*inputDims, *shape); in HWTEST_F()
[all...]
/test/xts/acts/ai/nncore/common/
H A Dnncore_utils.cpp29 NN_TensorDesc* createTensorDesc(const int32_t* shape, size_t shapeNum, OH_NN_DataType dataType, OH_NN_Format format) in createTensorDesc() argument
43 if (shape != nullptr) { in createTensorDesc()
44 ret = OH_NNTensorDesc_SetShape(tensorDescTmp, shape, shapeNum); in createTensorDesc()
85 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildMultiOpGraph()
86 (uint32_t) operandTem.shape.size(), in BuildMultiOpGraph()
159 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildSingleOpGraph()
160 (uint32_t) operandTem.shape.size(), in BuildSingleOpGraph()
191 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildSingleOpGraphWithQuantParams()
192 (uint32_t) operandTem.shape.size(), in BuildSingleOpGraphWithQuantParams()
/test/xts/acts/ai/nncore/opstest/include/
H A Dnncore_utils.h32 std::vector<int32_t> shape; member
70 NN_TensorDesc* createTensorDesc(const int32_t* shape, size_t shapeNum, OH_NN_DataType dataType, OH_NN_Format format);

Completed in 27 milliseconds

1234