class_docstr: Distributed dataset that supports prefetching to multiple devices.
class_docstr_tok: ["Distributed","dataset","that","supports","prefetching","to","multiple","devices","."]
docstr: Get an initializable iterator for DistributedDatasetV1.
code: def _make_initializable_iterator(
      self, shared_name=None
  ):  # pylint: disable=unused-argument
      """Get an initializable iterator for DistributedDatasetV1."""
      # Eager mode generates already initialized iterators. Hence we cannot create
      # an initializable iterator.
      if context.executing_eagerly():
          raise ValueError(
              "Cannot create initializable iterator in Eager mode. "
              "Please use `iter()` instead."
          )
      return self._get_iterator()
  
imports: from tensorflow.python.data.experimental.ops import cardinality
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import multi_device_iterator_ops
  from tensorflow.python.data.ops import optional_ops
  from tensorflow.python.distribute import input_lib
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.types import data
  from tensorflow.python.util.deprecation import deprecated
label_desc: Use image node_id 5 for calling the DistributedDatasetV1 obj's underlying member method code with example usage: obj._make_initializable_iterator(shared_name) and returns: self