tf.compat.v1.data.make_initializable_iterator
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
  
   
  
    
  
  
    
    
Creates an iterator for elements of dataset.
tf . compat . v1 . data . make_initializable_iterator ( 
    dataset ,  shared_name = None 
) 
 
Note:  The returned iterator will be in an uninitialized state,
and you must run the iterator.initializer operation before using it: 
dataset  =  ... 
iterator  =  tf . compat . v1 . data . make_initializable_iterator ( dataset ) 
# ... 
sess . run ( iterator . initializer ) 
 
 
Args  
dataset
 
A tf.data.Dataset .
 
 
shared_name
 
(Optional.) If non-empty, the returned iterator will be shared
under the given name across multiple sessions that share the same devices
(e.g. when using a remote server).
 
 
 
Raises  
RuntimeError
 
If eager execution is enabled.
 
 
  
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license .
  Last updated 2021-05-14 UTC.
 
 
  
  
  
    
      [null,null,["Last updated 2021-05-14 UTC."],[],[]]