(self)
Write the dataset's specification to a JSON file.
Write the dataset's specification to a JSON file.
Write the dataset s specification to a JSON file .
def write_data_spec(self):
    """Write the dataset's specification to a JSON file."""
    with tf.io.gfile.GFile(self.dataset_spec_path, 'w') as f:
      # Use 2-space indentation (which also add newlines) for legibility.
      json.dump(self.dataset_spec.to_dict(), f, indent=2)
def write_data_spec ( self ) : with tf . io . gfile . GFile ( self . dataset_spec_path , 'w' ) as f : # Use 2-space indentation (which also add newlines) for legibility. json . dump ( self . dataset_spec . to_dict ( ) , f , indent = 2 )