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 = ArgumentParser(description=__doc__,
                              formatter_class=ArgumentDefaultsHelpFormatter)
  
      parser.add_argument('input_net_proto_file',
                          help='Input network prototxt file')
      parser.add_argument('output_image_file',
                          help='Output image file')
      parser.add_argument('--rankdir',
                          help=('One of TB (top-bottom, i.e., vertical), '
                                'RL (right-left, i.e., horizontal), or another '
                                'valid dot option; see '
                                'http://www.graphviz.org/doc/info/'
                                'attrs.html#k:rankdir'),
                          default='LR')
      parser.add_argument('--phase',
                          help=('Which network phase to draw: can be TRAIN, '
                                'TEST, or ALL.  If ALL, then all layers are drawn '
                                'regardless of phase.'),
                          default="ALL")
      parser.add_argument('--display_lrm', action='store_true',
                          help=('Use this flag to visualize the learning rate '
                                'multiplier, when non-zero, for the learning '
                                'layers (Convolution, Deconvolution, InnerProduct).'))
  
      args = parser.parse_args()
      return args
function_tokens: def parse_args ( ) : parser = ArgumentParser ( description = __doc__ , formatter_class = ArgumentDefaultsHelpFormatter ) parser . add_argument ( 'input_net_proto_file' , help = 'Input network prototxt file' ) parser . add_argument ( 'output_image_file' , help = 'Output image file' ) parser . add_argument ( '--rankdir' , help = ( 'One of TB (top-bottom, i.e., vertical), ' 'RL (right-left, i.e., horizontal), or another ' 'valid dot option; see ' 'http://www.graphviz.org/doc/info/' 'attrs.html#k:rankdir' ) , default = 'LR' ) parser . add_argument ( '--phase' , help = ( 'Which network phase to draw: can be TRAIN, ' 'TEST, or ALL.  If ALL, then all layers are drawn ' 'regardless of phase.' ) , default = "ALL" ) parser . add_argument ( '--display_lrm' , action = 'store_true' , help = ( 'Use this flag to visualize the learning rate ' 'multiplier, when non-zero, for the learning ' 'layers (Convolution, Deconvolution, InnerProduct).' ) ) args = parser . parse_args ( ) return args