1// Generated file (from: space_to_depth_float_1_relaxed.mod.py). Do not edit 2void CreateModel(Model *model) { 3 OperandType type1(Type::INT32, {}); 4 OperandType type2(Type::TENSOR_FLOAT32, {1, 1, 1, 8}); 5 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2}); 6 // Phase 1, operands 7 auto input = model->addOperand(&type0); 8 auto block_size = model->addOperand(&type1); 9 auto output = model->addOperand(&type2); 10 // Phase 2, operations 11 static int32_t block_size_init[] = {2}; 12 model->setOperandValue(block_size, block_size_init, sizeof(int32_t) * 1); 13 model->addOperation(ANEURALNETWORKS_SPACE_TO_DEPTH, {input, block_size}, {output}); 14 // Phase 3, inputs and outputs 15 model->identifyInputsAndOutputs( 16 {input}, 17 {output}); 18 // Phase 4: set relaxed execution 19 model->relaxComputationFloat32toFloat16(true); 20 assert(model->isValid()); 21} 22 23bool is_ignored(int i) { 24 static std::set<int> ignore = {}; 25 return ignore.find(i) != ignore.end(); 26} 27