/test/xts/acts/ai/nncore/nncoretest/src/ |
D | HdiTensorDescTest.cpp | 33 NN_TensorDesc* tensorDesc = OH_NNTensorDesc_Create(); variable 34 ASSERT_NE(nullptr, tensorDesc); 35 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_Destroy(&tensorDesc)); 55 NN_TensorDesc* tensorDesc = nullptr; variable 56 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNTensorDesc_Destroy(&tensorDesc)); 66 NN_TensorDesc* tensorDesc = OH_NNTensorDesc_Create(); variable 67 ASSERT_NE(nullptr, tensorDesc); 68 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_Destroy(&tensorDesc)); 88 NN_TensorDesc* tensorDesc = OH_NNTensorDesc_Create(); variable 89 ASSERT_NE(nullptr, tensorDesc); [all …]
|
D | HdiTensorTest.cpp | 69 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 71 NN_Tensor* tensor = OH_NNTensor_Create(deviceId, tensorDesc); 73 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_Destroy(&tensorDesc)); 84 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 87 NN_Tensor* tensor = OH_NNTensor_Create(deviceId, tensorDesc); 90 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_Destroy(&tensorDesc)); 115 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 119 NN_Tensor* tensor = OH_NNTensor_CreateWithSize(deviceId, tensorDesc, size); 121 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_Destroy(&tensorDesc)); 132 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable [all …]
|
D | HdiModelTest.cpp | 101 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 102 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensorToModel(model, tensorDesc)); 125 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 126 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensorToModel(model, tensorDesc)); 149 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 150 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensorToModel(model, tensorDesc)); 173 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 174 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensorToModel(model, tensorDesc)); 197 NN_TensorDesc* tensorDesc = createTensorDesc(inputDims, 4, OH_NN_FLOAT32, OH_NN_FORMAT_NCHW); variable 198 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensorToModel(model, tensorDesc)); [all …]
|
D | HdiExecutorTest.cpp | 655 NN_TensorDesc* tensorDesc = nullptr; variable 657 tensorDesc = OH_NNExecutor_CreateInputTensorDesc(executor, i); 658 ASSERT_NE(nullptr, tensorDesc); 708 NN_TensorDesc* tensorDesc = nullptr; variable 710 tensorDesc = OH_NNExecutor_CreateOutputTensorDesc(executor, i); 711 ASSERT_NE(nullptr, tensorDesc);
|
/test/xts/acts/ai/nncore/common/ |
D | nncore_utils.cpp | 85 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildMultiOpGraph() local 88 ret = OH_NNModel_AddTensorToModel(model, tensorDesc); in BuildMultiOpGraph() 158 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildSingleOpGraph() local 161 ret = OH_NNModel_AddTensorToModel(model, tensorDesc); in BuildSingleOpGraph() 189 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildSingleOpGraphWithQuantParams() local 192 ret = OH_NNModel_AddTensorToModel(model, tensorDesc); in BuildSingleOpGraphWithQuantParams()
|