/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/ops/ |
H A D | mul_builder_test.cpp | 54 int8_t* activationValue = new (std::nothrow) int8_t(0); in SaveParamsTensor() local 55 EXPECT_NE(nullptr, activationValue); in SaveParamsTensor() 56 activationTensor->SetBuffer(activationValue, sizeof(int8_t)); in SaveParamsTensor() 167 float activationValue = 1e-7; variable 168 activationTensor->SetBuffer(&activationValue, sizeof(activationValue)); 190 int8_t activationValue[2] = {0, 1}; variable 191 activationTensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 211 int8_t activationValue = -1; variable 212 activationTensor->SetBuffer(&activationValue, sizeof(activationValue)); 264 int8_t activationValue = 0; variable [all …]
|
H A D | fullconnection_test.cpp | 79 int8_t* activationValue = new (std::nothrow) int8_t(0); in SetActivation() local 80 EXPECT_NE(nullptr, activationValue); in SetActivation() 82 tensor->SetBuffer(activationValue, sizeof(int8_t)); in SetActivation() 192 EXPECT_NE(nullptr, activationValue); 194 tensor->SetBuffer(activationValue, sizeof(int32_t)); 241 EXPECT_NE(nullptr, activationValue); 243 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 265 EXPECT_NE(nullptr, activationValue); 267 tensor->SetBuffer(activationValue, sizeof(int8_t)); 289 EXPECT_NE(nullptr, activationValue); [all …]
|
H A D | scale_builder_test.cpp | 65 int8_t *activationValue = new (std::nothrow) int8_t(0); in SaveActivationTensor() local 66 EXPECT_NE(nullptr, activationValue); in SaveActivationTensor() 67 activationTensor->SetBuffer(activationValue, sizeof(int64_t)); in SaveActivationTensor() 203 int64_t activationValue = 0; variable 204 activationTensor->SetBuffer(&activationValue, sizeof(activationValue)); 250 int64_t activationValue[2] = {1, 1}; variable 251 activationTensor->SetBuffer(activationValue, 2 * sizeof(int64_t)); 273 int8_t activationValue = -1; variable 274 activationTensor->SetBuffer(&activationValue, sizeof(activationValue)); 369 int8_t activationValue = 0; variable [all …]
|
H A D | matmul_builder_test.cpp | 81 int8_t* activationValue = new (std::nothrow) int8_t(0); in SaveActivationTensor() local 82 EXPECT_NE(nullptr, activationValue); in SaveActivationTensor() 83 activationTensor->SetBuffer(activationValue, sizeof(int8_t)); in SaveActivationTensor() 306 bool activationValue = false; variable 307 activationTensor->SetBuffer(&activationValue, sizeof(activationValue)); 331 int8_t activationValue[2] = {0, 1}; variable 332 activationTensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 354 int8_t activationValue = -1; variable 355 activationTensor->SetBuffer(&activationValue, sizeof(activationValue)); 455 int8_t activationValue = 0; variable [all …]
|
H A D | avgpool_padmod_test.cpp | 300 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 301 EXPECT_NE(nullptr, activationValue); 303 tensor->SetBuffer(activationValue, sizeof(int32_t)); 378 EXPECT_NE(nullptr, activationValue); 382 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 401 int8_t* activationValue = new (std::nothrow) int8_t(0); variable 402 EXPECT_NE(nullptr, activationValue); 406 tensor->SetBuffer(activationValue, sizeof(int8_t)); 449 int8_t* activationValue = new (std::nothrow) int8_t(6); variable 450 EXPECT_NE(nullptr, activationValue); [all …]
|
H A D | maxpool_padmode_test.cpp | 292 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 293 EXPECT_NE(nullptr, activationValue); 295 tensor->SetBuffer(activationValue, sizeof(int32_t)); 370 EXPECT_NE(nullptr, activationValue); 374 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 393 int8_t* activationValue = new (std::nothrow) int8_t(0); variable 394 EXPECT_NE(nullptr, activationValue); 398 tensor->SetBuffer(activationValue, sizeof(int8_t)); 441 int8_t* activationValue = new (std::nothrow) int8_t(6); variable 442 EXPECT_NE(nullptr, activationValue); [all …]
|
H A D | conv2d_padmode_test.cpp | 332 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 333 EXPECT_NE(nullptr, activationValue); 334 tensor->SetBuffer(activationValue, sizeof(int32_t)); 388 EXPECT_NE(nullptr, activationValue); 390 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 415 int8_t* activationValue = new (std::nothrow) int8_t(0); variable 416 EXPECT_NE(nullptr, activationValue); 417 tensor->SetBuffer(activationValue, sizeof(int8_t)); 501 int8_t* activationValue = new (std::nothrow) int8_t(10); variable 502 EXPECT_NE(nullptr, activationValue); [all …]
|
H A D | depthwise_conv2d_native_pad_test.cpp | 302 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 303 EXPECT_NE(nullptr, activationValue); 305 tensor->SetBuffer(activationValue, sizeof(int32_t)); 330 EXPECT_NE(nullptr, activationValue); 332 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 355 int8_t* activationValue = new (std::nothrow) int8_t(0); variable 356 EXPECT_NE(nullptr, activationValue); 358 tensor->SetBuffer(activationValue, sizeof(int8_t)); 381 int8_t* activationValue = new (std::nothrow) int8_t(10); variable 382 EXPECT_NE(nullptr, activationValue); [all …]
|
H A D | fullconnection_with_axis_test.cpp | 80 int8_t* activationValue = new (std::nothrow) int8_t(0); in SetActivation() local 81 EXPECT_NE(nullptr, activationValue); in SetActivation() 83 tensor->SetBuffer(activationValue, sizeof(int8_t)); in SetActivation() 242 int32_t *activationValue = new (std::nothrow) int32_t(0); variable 243 EXPECT_NE(nullptr, activationValue); 244 tensor->SetBuffer(activationValue, sizeof(int32_t)); 345 int8_t *activationValue = new (std::nothrow) int8_t[2]{0, 0}; variable 346 EXPECT_NE(nullptr, activationValue); 347 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t));
|
H A D | ops_test.cpp | 71 int8_t* activationValue = new (std::nothrow) int8_t(0); in SetActivation() local 72 EXPECT_NE(nullptr, activationValue); in SetActivation() 73 tensor->SetBuffer(activationValue, sizeof(int8_t)); in SetActivation()
|
H A D | depthwise_conv2d_native_padmode_test.cpp | 299 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 300 EXPECT_NE(nullptr, activationValue); 301 tensor->SetBuffer(activationValue, sizeof(int32_t)); 325 int8_t* activationValue = new (std::nothrow) int8_t[2]{0, 0}; variable 326 EXPECT_NE(nullptr, activationValue); 328 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t));
|
H A D | avgpool_pad_test.cpp | 298 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 299 EXPECT_NE(nullptr, activationValue); 301 tensor->SetBuffer(activationValue, sizeof(int32_t)); 375 int8_t* activationValue = new (std::nothrow) int8_t[2]{1, 2}; variable 376 EXPECT_NE(nullptr, activationValue); 380 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 547 int8_t activationValue = 0; variable 549 EXPECT_EQ(activationValue, expectActivation);
|
H A D | maxpool_pad_test.cpp | 299 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 300 EXPECT_NE(nullptr, activationValue); 302 tensor->SetBuffer(activationValue, sizeof(int32_t)); 376 int8_t* activationValue = new (std::nothrow) int8_t[2]{1, 2}; variable 377 EXPECT_NE(nullptr, activationValue); 381 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t)); 549 int8_t activationValue = 0; variable 551 EXPECT_EQ(activationValue, expectActivation);
|
H A D | conv2d_transpose_pad_test.cpp | 372 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 373 EXPECT_NE(nullptr, activationValue); 375 tensor->SetBuffer(activationValue, sizeof(int32_t)); 424 int8_t* activationValue = new (std::nothrow) int8_t[2]{0, 0}; variable 425 EXPECT_NE(nullptr, activationValue); 426 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t));
|
H A D | conv2d_pad_test.cpp | 326 int32_t* activationValue = new (std::nothrow) int32_t(0); variable 327 EXPECT_NE(nullptr, activationValue); 329 tensor->SetBuffer(activationValue, sizeof(int32_t)); 381 int8_t* activationValue = new (std::nothrow) int8_t[2]{0, 0}; variable 382 EXPECT_NE(nullptr, activationValue); 383 tensor->SetBuffer(activationValue, 2 * sizeof(int8_t));
|
H A D | add_test.cpp | 54 int8_t* activationValue = new (std::nothrow) int8_t(0); in SaveParamsTensor() local 55 EXPECT_NE(nullptr, activationValue); in SaveParamsTensor() 56 tensor->SetBuffer(activationValue, sizeof(int8_t)); in SaveParamsTensor()
|
H A D | div_test.cpp | 54 int8_t* activationValue = new (std::nothrow) int8_t(0); in SaveParamsTensor() local 55 EXPECT_NE(nullptr, activationValue); in SaveParamsTensor() 56 tensor->SetBuffer(activationValue, sizeof(int8_t)); in SaveParamsTensor()
|
H A D | conv2d_tranpose_padmode_test.cpp | 491 int8_t* activationValue = new (std::nothrow) int8_t(0); variable 492 EXPECT_NE(nullptr, activationValue); 494 tensor->SetBuffer(activationValue, sizeof(int8_t)); 520 int8_t* activationValue = new (std::nothrow) int8_t(10); variable 521 EXPECT_NE(nullptr, activationValue); 523 tensor->SetBuffer(activationValue, sizeof(int8_t));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/system_test/ |
H A D | end_to_end_test.cpp | 129 int8_t activationValue{0}; variable 133 …CppTensor activation{OH_NN_INT8, {}, (void*)(&activationValue), 1, quantParam, OH_NN_ADD_ACTIVATIO… 184 int8_t activationValue{0}; variable 188 …CppTensor activation{OH_NN_INT8, {}, (void*)(&activationValue), 1, quantParam, OH_NN_ADD_ACTIVATIO… 250 int8_t activationValue{0}; variable 255 …CppTensor activation{OH_NN_INT8, {}, (void*)(&activationValue), 1, quantParam, OH_NN_ADD_ACTIVATIO… 308 int8_t activationValue{0}; variable 363 int8_t activationValue{0}; variable 439 int8_t activationValue{0}; variable 503 int8_t activationValue{0}; variable [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/inner_model/ |
H A D | nn_tensor_test.cpp | 321 int8_t* activationValue = new (std::nothrow) int8_t[1] {0}; variable 322 EXPECT_NE(nullptr, activationValue); 325 nnTensor.SetBuffer(activationValue, sizeof(int8_t)); 343 int8_t* activationValue = new (std::nothrow) int8_t[1] {0}; variable 344 EXPECT_NE(nullptr, activationValue); 347 nnTensor.SetBuffer(activationValue, sizeof(int8_t));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/inner_model/ |
H A D | nn_tensor_test.cpp | 321 int8_t* activationValue = new (std::nothrow) int8_t[1] {0}; variable 322 EXPECT_NE(nullptr, activationValue); 325 nnTensor.SetBuffer(activationValue, sizeof(int8_t)); 343 int8_t* activationValue = new (std::nothrow) int8_t[1] {0}; variable 344 EXPECT_NE(nullptr, activationValue); 347 nnTensor.SetBuffer(activationValue, sizeof(int8_t));
|
/ohos5.0/foundation/ai/neural_network_runtime/ |
H A D | neural-network-runtime-guidelines.md | 351 int8_t activationValue = OH_NN_FUSED_NONE; 352 returnCode = OH_NNModel_SetTensorData(model, 2, &activationValue, sizeof(int8_t));
|
/ohos5.0/docs/zh-cn/application-dev/ai/nnrt/ |
H A D | neural-network-runtime-guidelines.md | 342 int8_t activationValue = OH_NN_FUSED_NONE; 343 returnCode = OH_NNModel_SetTensorData(model, 2, &activationValue, sizeof(int8_t));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/compilation/ |
H A D | compilation_test.cpp | 48 int8_t activationValue = OH_NN_FUSED_NONE; in BuildModel() local 57 ret = innerModel.SetTensorValue(index, &activationValue, sizeof(int8_t)); in BuildModel()
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/compilation/ |
H A D | compilation_test.cpp | 48 int8_t activationValue = OH_NN_FUSED_NONE; in BuildModel() local 57 ret = innerModel.SetTensorValue(index, &activationValue, sizeof(int8_t)); in BuildModel()
|