class_docstr: Get an embedding from the instrument one-hot.
code: def __init__(
      self,
      one_hot_key="instrument",
      vocab_size=1024,
      n_dims=256,
      skip_expand=True,
      **kwargs,
  ):
      super().__init__(input_keys=[one_hot_key], **kwargs)
      self.one_hot_key = one_hot_key
      self.vocab_size = vocab_size
      self.n_dims = n_dims
      self.skip_expand = skip_expand
  
imports: import ddsp
  from ddsp import spectral_ops
  from ddsp.training import nn
  import gin
  import tensorflow.compat.v2
label_desc: Use image node_id 1 to create a new OneHotEncoder object from inherited base classes: ZEncoder with example: obj = OneHotEncoder(one_hot_key, vocab_size, n_dims, skip_expand)