parameters: ()
return_statement: return args
docstring: Parse input arguments
docstring_summary: Parse input arguments
docstring_tokens: Parse input arguments
function: def parse_args():
      """
      Parse input arguments
      """
      parser = argparse.ArgumentParser(description='Convert conv+bn+scale to conv')
      parser.add_argument('--src_prototxt', dest='src_prototxt',
                          help='prototxt file defining the source network',
                          default=None, type=str)
      parser.add_argument('--dst_prototxt', dest='dst_prototxt',
                          help='prototxt file defining the destination network',
                          default=None, type=str)
      parser.add_argument('--dst_width', dest='dst_width',
                          help='width of input image',
                          default=None, type=str)
      parser.add_argument('--dst_height', dest='dst_height',
                          help='height of input image',
                          default=None, type=str)
      parser.add_argument('--caffe_path', dest='caffe_path',
                          help='absolute path of caffe',
                          default=None, type=str)
      if len(sys.argv) == 1:
          parser.print_help()
          sys.exit(1)
  
      args = parser.parse_args()
  
      if args.src_prototxt is None or args.dst_prototxt is None or args.dst_width is None or args.dst_height is None:
          parser.print_help()
          sys.exit(1)
  
      return args
function_tokens: def parse_args ( ) : parser = argparse . ArgumentParser ( description = 'Convert conv+bn+scale to conv' ) parser . add_argument ( '--src_prototxt' , dest = 'src_prototxt' , help = 'prototxt file defining the source network' , default = None , type = str ) parser . add_argument ( '--dst_prototxt' , dest = 'dst_prototxt' , help = 'prototxt file defining the destination network' , default = None , type = str ) parser . add_argument ( '--dst_width' , dest = 'dst_width' , help = 'width of input image' , default = None , type = str ) parser . add_argument ( '--dst_height' , dest = 'dst_height' , help = 'height of input image' , default = None , type = str ) parser . add_argument ( '--caffe_path' , dest = 'caffe_path' , help = 'absolute path of caffe' , default = None , type = str ) if len ( sys . argv ) == 1 : parser . print_help ( ) sys . exit ( 1 ) args = parser . parse_args ( ) if args . src_prototxt is None or args . dst_prototxt is None or args . dst_width is None or args . dst_height is None : parser . print_help ( ) sys . exit ( 1 ) return args