Home
last modified time | relevance | path

Searched defs:AddModel (Results 1 – 3 of 3) sorted by relevance

/test/xts/acts/ai/neural_network_runtime/v2_0/common/
Dmodel.h25 struct AddModel { struct
27 float inputValue0[4] = {0, 1, 2, 3};
28 float inputValue1[4] = {0, 1, 2, 3};
29 int8_t activationValue = OH_NN_FUSED_NONE;
30 float outputValue[4] = {0};
31 float expectValue[4] = {0, 2, 4, 6};
33 …OHNNOperandTest input0 = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, inputValue0, ADD_DATA_LENGTH};
34 …OHNNOperandTest input1 = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, inputValue1, ADD_DATA_LENGTH};
35 …randTest activation = {OH_NN_INT8, OH_NN_ADD_ACTIVATIONTYPE, {}, &activationValue, sizeof(int8_t)};
36 …OHNNOperandTest output = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, outputValue, ADD_DATA_LENGTH};
[all …]
/test/xts/acts/ai/neural_network_runtime/v1_0/common/
Dmodel.h25 struct AddModel { struct
27 float inputValue0[4] = {0, 1, 2, 3};
28 float inputValue1[4] = {0, 1, 2, 3};
29 int8_t activationValue = OH_NN_FUSED_NONE;
30 float outputValue[4] = {0};
31 float expectValue[4] = {0, 2, 4, 6};
33 …OHNNOperandTest input0 = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, inputValue0, ADD_DATA_LENGTH};
34 …OHNNOperandTest input1 = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, inputValue1, ADD_DATA_LENGTH};
35 …randTest activation = {OH_NN_INT8, OH_NN_ADD_ACTIVATIONTYPE, {}, &activationValue, sizeof(int8_t)};
36 …OHNNOperandTest output = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, outputValue, ADD_DATA_LENGTH};
[all …]
/test/xts/acts/ai/nncore/common/
Dnncore_utils.h71 struct AddModel { struct
73 float inputValue0[4] = {0, 1, 2, 3};
74 float inputValue1[4] = {0, 1, 2, 3};
75 int8_t activationValue = OH_NN_FUSED_NONE;
76 float outputValue[4] = {0};
77 float expectValue[4] = {0, 2, 4, 6};
79 …OHNNOperandTest input0 = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, inputValue0, ADD_DATA_LENGTH};
80 …OHNNOperandTest input1 = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, inputValue1, ADD_DATA_LENGTH};
81 …randTest activation = {OH_NN_INT8, OH_NN_ADD_ACTIVATIONTYPE, {}, &activationValue, sizeof(int8_t)};
82 …OHNNOperandTest output = {OH_NN_FLOAT32, OH_NN_TENSOR, TENSOR_SHAPE, outputValue, ADD_DATA_LENGTH};
[all …]