summaryrefslogtreecommitdiff
path: root/runtimes/tests/neural_networks_test/generated/models/max_pool_float_4.model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtimes/tests/neural_networks_test/generated/models/max_pool_float_4.model.cpp')
-rw-r--r--runtimes/tests/neural_networks_test/generated/models/max_pool_float_4.model.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/runtimes/tests/neural_networks_test/generated/models/max_pool_float_4.model.cpp b/runtimes/tests/neural_networks_test/generated/models/max_pool_float_4.model.cpp
deleted file mode 100644
index 2734236d3..000000000
--- a/runtimes/tests/neural_networks_test/generated/models/max_pool_float_4.model.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// Generated file (from: max_pool_float_4.mod.py). Do not edit
-void CreateModel(Model *model) {
- OperandType type1(Type::INT32, {});
- OperandType type2(Type::TENSOR_FLOAT32, {1, 1, 2, 1});
- OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 4, 1});
- // Phase 1, operands
- auto op1 = model->addOperand(&type0);
- auto cons2 = model->addOperand(&type1);
- auto pad_same = model->addOperand(&type1);
- auto act_none = model->addOperand(&type1);
- auto op3 = model->addOperand(&type2);
- // Phase 2, operations
- static int32_t cons2_init[] = {2};
- model->setOperandValue(cons2, cons2_init, sizeof(int32_t) * 1);
- static int32_t pad_same_init[] = {1};
- model->setOperandValue(pad_same, pad_same_init, sizeof(int32_t) * 1);
- static int32_t act_none_init[] = {0};
- model->setOperandValue(act_none, act_none_init, sizeof(int32_t) * 1);
- model->addOperation(ANEURALNETWORKS_MAX_POOL_2D, {op1, pad_same, cons2, cons2, cons2, cons2, act_none}, {op3});
- // Phase 3, inputs and outputs
- model->identifyInputsAndOutputs(
- {op1},
- {op3});
- assert(model->isValid());
-}
-
-bool is_ignored(int i) {
- static std::set<int> ignore = {};
- return ignore.find(i) != ignore.end();
-}