28 std::vector<mir::Operation::Output *> inputs = context->
getNodeInputs(onnx_node);
30 assert(inputs.size() >= 1);
32 auto result = inputs[0];
33 for (
int i = 1; i < static_cast<int>(inputs.size()); ++i)
35 result = createOp<mir::ops::AddOp>(graph, result, inputs[i])->getOutput(0);
void setNodeOutputs(const onnx::NodeProto &onnx_node, const std::vector< mir::Operation::Output * > &outputs)
std::vector< mir::Operation::Output * > getNodeInputs(const onnx::NodeProto &onnx_node) const
mir::Graph * getGraph() const