26static void convertRelu(
const onnx::NodeProto &onnx_node, ConverterContext *context)
28 std::vector<mir::Operation::Output *>
inputs = context->getNodeInputs(onnx_node);
30 assert(
inputs.size() == 1);
31 auto result = createOp<mir::ops::ReluOp>(graph, inputs[0])->getOutput(0);
33 context->setNodeOutputs(onnx_node, {
result});
38 convertRelu(onnx_node, context);
43 convertRelu(onnx_node, context);
void convertReluV1(const onnx::NodeProto &onnx_node, ConverterContext *context)
void convertReluV6(const onnx::NodeProto &onnx_node, ConverterContext *context)