def convert_custom(net, node, module, builder):
    """Convert highly specific ops"""
    input_name, output_name = _get_input_output_name(net, node)
    name = node['name']
    param = _get_attr(node)
    if param['op_type'] == 'special-darknet-maxpool':
        _add_pooling.add_pooling_with_padding_types(
            builder=builder,
            name=name,
            height=2,
            width=2,
            stride_height=1,
            stride_width=1,
            layer_type='MAX',
            padding_type='SAME',
            is_global=False,
            same_padding_asymmetry_mode='BOTTOM_RIGHT_HEAVY',
            input_name=input_name,
            output_name=output_name
        )
    else:
        raise TypeError("MXNet layer of type Custom is not supported.")
def convert_custom ( net , node , module , builder ) : input_name , output_name = _get_input_output_name ( net , node ) name = node [ 'name' ] param = _get_attr ( node ) if param [ 'op_type' ] == 'special-darknet-maxpool' : _add_pooling . add_pooling_with_padding_types ( builder = builder , name = name , height = 2 , width = 2 , stride_height = 1 , stride_width = 1 , layer_type = 'MAX' , padding_type = 'SAME' , is_global = False , same_padding_asymmetry_mode = 'BOTTOM_RIGHT_HEAVY' , input_name = input_name , output_name = output_name ) else : raise TypeError ( "MXNet layer of type Custom is not supported." )
Convert highly specific ops