blob: 1221b7bdadc1aa2cc1246d90520ad799615771cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Generated file (from: explicit_add.mod.py). Do not edit
void CreateModel(Model *model) {
OperandType type0(Type::TENSOR_FLOAT32, {1, 8, 8, 3});
// Phase 1, operands
auto op1 = model->addOperand(&type0);
auto op2 = model->addOperand(&type0);
auto op0 = model->addOperand(&type0);
// Phase 2, operations
model->addOperation(ANEURALNETWORKS_ADD, {op1, op1}, {op0});
model->addOperation(ANEURALNETWORKS_ADD, {op0, op1}, {op2});
// Phase 3, inputs and outputs
model->identifyInputsAndOutputs(
{op1},
{op2});
assert(model->isValid());
}
bool is_ignored(int i) {
static std::set<int> ignore = {};
return ignore.find(i) != ignore.end();
}
|