def _maxpool(converter, node: Any, inputs: List[str]) -> Any:
    x_in = converter.outputs[inputs[0]]
    ksize = node.attr['ksize'].list.i
    s = node.attr['strides'].list.i
    padding = node.attr['padding'].s.decode('ascii')
    pool_size = [ksize[1], ksize[2]]
    strides = [s[1], s[2]]
    shape = [int(i) for i in x_in.shape]
    channels_first = (node.attr['data_format'].s.decode('ascii') == 'NCHW')
    pooler = MaxPooling2D(shape, pool_size, strides, padding, channels_first)
    out = pooler.forward(x_in)
    return out
def _maxpool(converter, node: Any, inputs: List[str]) -> Any:
    x_in = converter.outputs[inputs[0]]
    ksize = node.attr['ksize'].list.i
    s = node.attr['strides'].list.i
    padding = node.attr['padding'].s.decode('ascii')
    pool_size = [ksize[1], ksize[2]]
    strides = [s[1], s[2]]
    shape = [int(i) for i in x_in.shape]
    channels_first = (node.attr['data_format'].s.decode('ascii') == 'NCHW')
    pooler = MaxPooling2D(shape, pool_size, strides, padding, channels_first)
    out = pooler.forward(x_in)
    return out