class_docstr: Base class for reading datasets from TensorFlow Datasets (TFDS).
class_docstr_tok: ["Base","class","for","reading","datasets","from","TensorFlow","Datasets","(","TFDS",")","."]
docstr: TfdsProvider constructor.
  
  Args:
    name: TFDS dataset name (with optional config and version).
    split: Dataset split to use of the TFDS dataset.
    data_dir: The directory to read TFDS datasets from. Defaults to
      "~/tensorflow_datasets".
    sample_rate: Sample rate of audio in the dataset.
    frame_rate: Frame rate of features in the dataset.
code: def __init__(self, name, split, data_dir, sample_rate, frame_rate):
      """TfdsProvider constructor.
  
      Args:
        name: TFDS dataset name (with optional config and version).
        split: Dataset split to use of the TFDS dataset.
        data_dir: The directory to read TFDS datasets from. Defaults to
          "~/tensorflow_datasets".
        sample_rate: Sample rate of audio in the dataset.
        frame_rate: Frame rate of features in the dataset.
      """
      self._name = name
      self._split = split
      self._data_dir = data_dir
      super().__init__(sample_rate, frame_rate)
  
imports: import os
  from absl import logging
  from ddsp.spectral_ops import CREPE_FRAME_SIZE
  from ddsp.spectral_ops import CREPE_SAMPLE_RATE
  from ddsp.spectral_ops import get_framed_lengths
  import gin
  import tensorflow.compat.v2
  import tensorflow_datasets
label_desc: Use image node_id 1 to create a new TfdsProvider object from inherited base classes: DataProvider with example: obj = TfdsProvider(name, split, data_dir, sample_rate, frame_rate)