class_docstr: Class to bind an optimizer, model, strategy, and training step function.
class_docstr_tok: ["Class","to","bind","an","optimizer",",","model",",","strategy",",","and","training","step","function","."]
docstr: Create a distributed dataset.
docstr_tok: ["Create","a","distributed","dataset","."]
code: def distribute_dataset(self, dataset):
      """Create a distributed dataset."""
      if isinstance(dataset, tf.data.Dataset):
          return self.strategy.experimental_distribute_dataset(dataset)
      else:
          return dataset
  
file_path: ddsp/ddsp/training/trainers.py
imports: import time
  from absl import logging
  from ddsp.training import train_util
  import gin
  import tensorflow.compat.v2
label_desc: Use image node_id 9 for calling the Trainer obj's underlying member method code with example usage: obj.distribute_dataset(dataset) and returns: self, dataset