parameters: (self)
return_statement: return Iterator(
          gen_dataset_ops.one_shot_iterator(
              dataset_factory=_make_dataset,
              output_types=nest.flatten(self.output_types),
              output_shapes=nest.flatten(self.output_shapes)), None,
          self.output_types, self.output_shapes)
docstring: Creates an `Iterator` for enumerating the elements of this dataset.
  
      **N.B.** The returned iterator will be initialized automatically.
      A "one-shot" iterator does not currently support re-initialization.
  
      Returns:
        An `Iterator` over the elements of this dataset.
docstring_summary: Creates an `Iterator` for enumerating the elements of this dataset.
docstring_tokens: Creates an Iterator for enumerating the elements of this dataset .
function: def make_one_shot_iterator(self):
      """Creates an `Iterator` for enumerating the elements of this dataset.
  
      **N.B.** The returned iterator will be initialized automatically.
      A "one-shot" iterator does not currently support re-initialization.
  
      Returns:
        An `Iterator` over the elements of this dataset.
      """
      # NOTE(mrry): We capture by value here to ensure that `_make_dataset()` is
      # a 0-argument function.
      @function.Defun(capture_by_value=True)
      def _make_dataset():
        return self.make_dataset_resource()
  
      _make_dataset.add_to_graph(ops.get_default_graph())
  
      return Iterator(
          gen_dataset_ops.one_shot_iterator(
              dataset_factory=_make_dataset,
              output_types=nest.flatten(self.output_types),
              output_shapes=nest.flatten(self.output_shapes)), None,
          self.output_types, self.output_shapes)
function_tokens: def make_one_shot_iterator ( self ) : # NOTE(mrry): We capture by value here to ensure that `_make_dataset()` is # a 0-argument function. @ function . Defun ( capture_by_value = True ) def _make_dataset ( ) : return self . make_dataset_resource ( ) _make_dataset . add_to_graph ( ops . get_default_graph ( ) ) return Iterator ( gen_dataset_ops . one_shot_iterator ( dataset_factory = _make_dataset , output_types = nest . flatten ( self . output_types ) , output_shapes = nest . flatten ( self . output_shapes ) ) , None , self . output_types , self . output_shapes )