/frameworks/ml/nn/runtime/test/generated/models/ |
D | sub_v1_2_broadcast.model.cpp | 10 auto act = model->addOperand(&type2); in CreateModel_none() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_none() 15 model->addOperation(ANEURALNETWORKS_SUB, {input0, input1, act}, {output0}); in CreateModel_none() 35 auto act = model->addOperand(&type2); in CreateModel_relu() local 39 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_relu() 40 model->addOperation(ANEURALNETWORKS_SUB, {input0, input1, act}, {output0}); in CreateModel_relu() 60 auto act = model->addOperand(&type2); in CreateModel_relu1() local 64 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_relu1() 65 model->addOperation(ANEURALNETWORKS_SUB, {input0, input1, act}, {output0}); in CreateModel_relu1() 85 auto act = model->addOperand(&type2); in CreateModel_relu6() local [all …]
|
D | mul_relu_relaxed.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | div.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel() 34 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 38 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 39 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | mul_quant8.model.cpp | 10 auto act = model->addOperand(&type1); in CreateModel() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 15 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel() 35 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 39 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 40 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | div_relaxed.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | mul_relu.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel() 34 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 38 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 39 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | sub_relaxed.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | add.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel() 34 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 38 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 39 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | mul_relaxed.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | mul.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel() 34 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 38 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 39 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | sub.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel() 34 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 38 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 39 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | add_relaxed.model.cpp | 9 auto act = model->addOperand(&type1); in CreateModel() local 13 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 14 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | mul_broadcast_quant8.model.cpp | 11 auto act = model->addOperand(&type2); in CreateModel() local 15 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 16 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel() 37 auto act = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 41 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 42 model->addOperation(ANEURALNETWORKS_MUL, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | sub_broadcast_float_relaxed.model.cpp | 10 auto act = model->addOperand(&type2); in CreateModel() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 15 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel() 38 auto act = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 42 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 43 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | add_broadcast_quant8.model.cpp | 10 auto act = model->addOperand(&type2); in CreateModel() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 15 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | div_broadcast_float_relaxed.model.cpp | 10 auto act = model->addOperand(&type2); in CreateModel() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 15 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel() 38 auto act = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 42 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 43 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | add_quant8.model.cpp | 10 auto act = model->addOperand(&type2); in CreateModel() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 15 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | sub_broadcast_float.model.cpp | 10 auto act = model->addOperand(&type2); in CreateModel() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 15 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_SUB, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
D | div_broadcast_float.model.cpp | 10 auto act = model->addOperand(&type2); in CreateModel() local 14 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 15 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel() 36 auto act = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 40 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 41 model->addOperation(ANEURALNETWORKS_DIV, {op1, op2, act}, {op3}); in CreateModel_dynamic_output_shape()
|
/frameworks/ml/nn/tools/test_generator/tests/P_internal/ |
D | add_internal.mod.py | 40 act = Int32Scalar("act", 0) variable 42 model.Operation("ADD", o0, o1, act).To(o2) 43 model.Operation("ADD", p0, t5, act).To(t6) 44 model.Operation("ADD", i2, t0, act).To(t1) 45 model.Operation("ADD", i6, p0, act).To(t5) 46 model.Operation("ADD", i0, i1, act).To(t0) 47 model.Operation("ADD", t1, t3, act).To(t4) 48 model.Operation("ADD", t2, i5, act).To(t3) 49 model.Operation("ADD", t4, t6, act).To(o0) 50 model.Operation("ADD", i3, i4, act).To(t2) [all …]
|
D | stdout.txt.expect | 22 auto act = model->addOperand(&type1); 43 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); 46 model->addOperation(ANEURALNETWORKS_ADD, {i6, p0, act}, {t5}); 47 model->addOperation(ANEURALNETWORKS_ADD, {p0, t5, act}, {t6}); 48 model->addOperation(ANEURALNETWORKS_ADD, {i0, i1, act}, {t0}); 49 model->addOperation(ANEURALNETWORKS_ADD, {i2, t0, act}, {t1}); 50 model->addOperation(ANEURALNETWORKS_ADD, {i3, i4, act}, {t2}); 51 model->addOperation(ANEURALNETWORKS_ADD, {t2, i5, act}, {t3}); 52 model->addOperation(ANEURALNETWORKS_ADD, {t1, t3, act}, {t4}); 53 model->addOperation(ANEURALNETWORKS_ADD, {t4, t6, act}, {o0}); [all …]
|
/frameworks/ml/nn/tools/test_generator/tests/P_vts_internal/ |
D | add_internal.mod.py | 40 act = Int32Scalar("act", 0) variable 42 model.Operation("ADD", o0, o1, act).To(o2) 43 model.Operation("ADD", p0, t5, act).To(t6) 44 model.Operation("ADD", i2, t0, act).To(t1) 45 model.Operation("ADD", i6, p0, act).To(t5) 46 model.Operation("ADD", i0, i1, act).To(t0) 47 model.Operation("ADD", t1, t3, act).To(t4) 48 model.Operation("ADD", t2, i5, act).To(t3) 49 model.Operation("ADD", t4, t6, act).To(o0) 50 model.Operation("ADD", i3, i4, act).To(t2) [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestCompliance.cpp | 72 auto act = model->addOperand(&kTypeInt32); in TEST_F() local 74 model->setOperandValue(act, &act_init, sizeof(act_init)); in TEST_F() 75 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F() 87 auto act = model->addOperand(&kTypeInt32); in TEST_F() local 89 model->setOperandValue(act, &act_init, sizeof(act_init)); in TEST_F() 90 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F() 105 auto act = model->addOperand(&kTypeInt32); in TEST_F() local 106 model->setOperandValue(act, &act_init, sizeof(act_init)); in TEST_F() 107 model->addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F() 108 model->addOperation(ANEURALNETWORKS_ADD, {op3, op4, act}, {op5}); in TEST_F() [all …]
|
/frameworks/ml/nn/tools/test_generator/tests/P_vts_variation/ |
D | conv_float.mod.py | 20 act = Int32Scalar("act", 0) # None activation variable 26 model = model.Operation("CONV_2D", i1, f1, b1, pad, stride0, stride1, act, layout).To(output) 41 relu = ActivationConverter("relu").Identify([output], [act]) 42 relu6 = ActivationConverter("relu6").Identify([output], [act]) 46 output, act).AddInput(f1).AddVariations(RelaxedModeConverter(True), quant8)
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | TestBase.java | 46 protected ScriptGroupTestActivity act; field in TestBase 51 MessageProcessor(ScriptGroupTestActivity act) { in MessageProcessor() argument 52 mAct = act; in MessageProcessor() 66 act = ipact; in createBaseTest() 68 mRS.setMessageHandler(new MessageProcessor(act)); in createBaseTest() 74 createTest(act.getResources()); in createBaseTest()
|