diff options
Diffstat (limited to 'tests/nnapi/nnapi_test_generator/android-p/tests/P_float/stdout.txt.expect')
-rw-r--r-- | tests/nnapi/nnapi_test_generator/android-p/tests/P_float/stdout.txt.expect | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/nnapi/nnapi_test_generator/android-p/tests/P_float/stdout.txt.expect b/tests/nnapi/nnapi_test_generator/android-p/tests/P_float/stdout.txt.expect new file mode 100644 index 000000000..eb8cc146b --- /dev/null +++ b/tests/nnapi/nnapi_test_generator/android-p/tests/P_float/stdout.txt.expect @@ -0,0 +1,23 @@ +// Generated file (from: addfloat.mod.py). Do not edit +void CreateModel(Model *model) { + OperandType type0(Type::TENSOR_FLOAT32, {3,4}); + // Phase 1, operands + auto operand1 = model->addOperand(&type0); + auto operand2 = model->addOperand(&type0); + auto operand3 = model->addOperand(&type0); + auto operand4 = model->addOperand(&type0); + auto tmp4 = model->addOperand(&type0); + // Phase 2, operations + model->addOperation(ANEURALNETWORKS_ADD, {operand1, operand2}, {tmp4}); + model->addOperation(ANEURALNETWORKS_ADD, {operand3, tmp4}, {operand4}); + // Phase 3, inputs and outputs + model->identifyInputsAndOutputs( + {operand1, operand2, operand3}, + {operand4}); + assert(model->isValid()); +} + +bool is_ignored(int i) { + static std::set<int> ignore = {}; + return ignore.find(i) != ignore.end(); +} |