concat_quant8_1.model.cpp revision 66d5cb6e3a90aefc8d545f6369080ab88de9d667
1// Generated file (from: concat_quant8_1.mod.py). Do not edit
2void CreateModel(Model *model) {
3  OperandType type1(Type::INT32, {});
4  OperandType type0(Type::TENSOR_QUANT8_ASYMM, {2, 3}, 0.5f, 0);
5  OperandType type2(Type::TENSOR_QUANT8_ASYMM, {2, 6}, 0.5f, 0);
6  // Phase 1, operands
7  auto op1 = model->addOperand(&type0);
8  auto op2 = model->addOperand(&type0);
9  auto axis1 = model->addOperand(&type1);
10  auto result = model->addOperand(&type2);
11  // Phase 2, operations
12  static int32_t axis1_init[] = {1};
13  model->setOperandValue(axis1, axis1_init, sizeof(int32_t) * 1);
14  model->addOperation(ANEURALNETWORKS_CONCATENATION, {op1, op2, axis1}, {result});
15  // Phase 3, inputs and outputs
16  model->identifyInputsAndOutputs(
17    {op1, op2},
18    {result});
19  assert(model->isValid());
20}
21
22bool is_ignored(int i) {
23  static std::set<int> ignore = {};
24  return ignore.find(i) != ignore.end();
25}
26