()
return parse_args
init_parser
init_parser
init_parser
def init_parser():
    """
        init_parser
    """
    parser = argparse.ArgumentParser(description='Data generator')
    parser.add_argument('--chunk_size', dest="chunk_size", nargs="?",
                        type=int, default=100,
                        help="size of chunk")
    parser.add_argument('--input_dir', dest="input_dir", nargs="?",
                        type=str, default='./cifar-10-batches-py',
                        help="path of input")
    parser.add_argument('--output_dir', dest="output_dir", nargs="?",
                        type=str, default='./pickle-cifar-10',
                        help="path of output")
    parse_args, unknown_flags = parser.parse_known_args()
    return parse_args
def init_parser ( ) : parser = argparse . ArgumentParser ( description = 'Data generator' ) parser . add_argument ( '--chunk_size' , dest = "chunk_size" , nargs = "?" , type = int , default = 100 , help = "size of chunk" ) parser . add_argument ( '--input_dir' , dest = "input_dir" , nargs = "?" , type = str , default = './cifar-10-batches-py' , help = "path of input" ) parser . add_argument ( '--output_dir' , dest = "output_dir" , nargs = "?" , type = str , default = './pickle-cifar-10' , help = "path of output" ) parse_args , unknown_flags = parser . parse_known_args ( ) return parse_args