26static void convertMaxGeneric(
const onnx::NodeProto &onnx_node, ConverterContext *context)
28 std::vector<mir::Operation::Output *>
inputs = context->getNodeInputs(onnx_node);
31 throw std::runtime_error{
"Unsupported number of inputs for Max operator"};
34 auto result = createOp<mir::ops::MaxOp>(graph, inputs[0], inputs[1])->getOutput(0);
36 context->setNodeOutputs(onnx_node, {
result});
41 convertMaxGeneric(onnx_node, context);
46 convertMaxGeneric(onnx_node, context);
51 convertMaxGeneric(onnx_node, context);
void convertMaxV6(const onnx::NodeProto &onnx_node, ConverterContext *context)
void convertMaxV1(const onnx::NodeProto &onnx_node, ConverterContext *context)
void convertMaxV8(const onnx::NodeProto &onnx_node, ConverterContext *context)