(self, hparams, output_depth, is_training)
Builds encoder and decoder.

    Must be called within a graph.

    Args:
      hparams: An HParams object containing model hyperparameters. See
          `get_default_hparams` below for required values.
      output_depth: Size of final output dimension.
      is_training: Whether or not the model will be used for training.
Builds encoder and decoder.
Builds encoder and decoder .
def build(self, hparams, output_depth, is_training):
    """Builds encoder and decoder.

    Must be called within a graph.

    Args:
      hparams: An HParams object containing model hyperparameters. See
          `get_default_hparams` below for required values.
      output_depth: Size of final output dimension.
      is_training: Whether or not the model will be used for training.
    """
    tf.logging.info('Building MusicVAE model with %s, %s, and hparams:\n%s',
                    self.encoder.__class__.__name__,
                    self.decoder.__class__.__name__, hparams.values())
    self.global_step = tf.train.get_or_create_global_step()
    self._hparams = hparams
    self._encoder.build(hparams, is_training)
    self._decoder.build(hparams, output_depth, is_training)
def build ( self , hparams , output_depth , is_training ) : tf . logging . info ( 'Building MusicVAE model with %s, %s, and hparams:\n%s' , self . encoder . __class__ . __name__ , self . decoder . __class__ . __name__ , hparams . values ( ) ) self . global_step = tf . train . get_or_create_global_step ( ) self . _hparams = hparams self . _encoder . build ( hparams , is_training ) self . _decoder . build ( hparams , output_depth , is_training )