Home
last modified time | relevance | path

Searched refs:activationValue (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/ops/
H A Dmul_builder_test.cpp54 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 Dfullconnection_test.cpp79 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 Dscale_builder_test.cpp65 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 Dmatmul_builder_test.cpp81 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 Davgpool_padmod_test.cpp300 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 Dmaxpool_padmode_test.cpp292 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 Dconv2d_padmode_test.cpp332 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 Ddepthwise_conv2d_native_pad_test.cpp302 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 Dfullconnection_with_axis_test.cpp80 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 Dops_test.cpp71 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 Ddepthwise_conv2d_native_padmode_test.cpp299 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 Davgpool_pad_test.cpp298 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 Dmaxpool_pad_test.cpp299 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 Dconv2d_transpose_pad_test.cpp372 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 Dconv2d_pad_test.cpp326 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 Dadd_test.cpp54 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 Ddiv_test.cpp54 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 Dconv2d_tranpose_padmode_test.cpp491 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 Dend_to_end_test.cpp129 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 Dnn_tensor_test.cpp321 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 Dnn_tensor_test.cpp321 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 Dneural-network-runtime-guidelines.md351 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 Dneural-network-runtime-guidelines.md342 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 Dcompilation_test.cpp48 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 Dcompilation_test.cpp48 int8_t activationValue = OH_NN_FUSED_NONE; in BuildModel() local
57 ret = innerModel.SetTensorValue(index, &activationValue, sizeof(int8_t)); in BuildModel()

12