def METHOD_NAME(op):
    if "pool_max" in op.tag:
        in_dtype = op.input_tensors[0].dtype
        if in_dtype != "int8":
            logger.warning("Does not have micro-kernel for %s maxpool.", in_dtype)
        elif layout == "NWC":
            schedule_maxpool_1d_nwc(s, op)
        elif layout == "NHWC":
            schedule_maxpool_2d_nhwc(s, op)
    elif "pool_sum" in op.tag:
        in_dtype = op.input_tensors[0].dtype
        if in_dtype != "int16":
            logger.warning("Does not have micro-kernel for %s avgpool.", in_dtype)
        elif layout == "NCW":
            schedule_avgpool_1d_ncw(s, op)
        elif layout == "NCHW":
            schedule_avgpool_2d_nchw(s, op)