parameters: (self, reader, num_iter=1)
docstring: Class initializer.
  
          Args:
              reader: The underlying reader object doing the actual read.
              num_iter: Number of batches to read. If `None`,
                  the class reverts to a normal reader except that it also
                  produces a data_finished blob as a side effect to indicate
                  whether the input stream is exhausted.
docstring_summary: Class initializer.
docstring_tokens: Class initializer .
function: def __init__(self, reader, num_iter=1):
          """Class initializer.
  
          Args:
              reader: The underlying reader object doing the actual read.
              num_iter: Number of batches to read. If `None`,
                  the class reverts to a normal reader except that it also
                  produces a data_finished blob as a side effect to indicate
                  whether the input stream is exhausted.
          """
          super(ReaderWithLimit, self).__init__(reader)
          self.counter = None
          self.num_iter = num_iter
          if self.num_iter is not None:
              self.counter = self.net.AddExternalInput(
                  self.net.NextName('counter'))
function_tokens: def __init__ ( self , reader , num_iter = 1 ) : super ( ReaderWithLimit , self ) . __init__ ( reader ) self . counter = None self . num_iter = num_iter if self . num_iter is not None : self . counter = self . net . AddExternalInput ( self . net . NextName ( 'counter' ) )