orbit.utils.make_distributed_dataset
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
A utility function to help create a tf.distribute.DistributedDataset.
orbit.utils.make_distributed_dataset(
    strategy, dataset_or_fn, *args, **kwargs
)
| Args | 
|---|
| strategy | An instance of tf.distribute.Strategy. | 
| dataset_or_fn | A instance of tf.data.Dataset, or a "dataset function"
returning atf.data.Dataset. If it is a function, it may optionally have
an argument namedinput_contextwhich will be passed atf.distribute.InputContextinstance. | 
| *args | Any positional arguments to pass through to dataset_or_fn. | 
| **kwargs | Any keyword arguments to pass through to dataset_or_fn, except
that theinput_optionskeyword is used to specify atf.distribute.InputOptionsfor making the distributed dataset. | 
| Returns | 
|---|
| A distributed Dataset. | 
  
  
 
  
    
    
      
       
    
    
  
  
  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 2025-04-18 UTC.
  
  
  
    
      [null,null,["Last updated 2025-04-18 UTC."],[],[]]