(self, pianorolls, masks)
return self.logits
Evalutes the model once and returns predictions.
Evalutes the model once and returns predictions.
Evalutes the model once and returns predictions .
def predict(self, pianorolls, masks):
    """Evalutes the model once and returns predictions."""
    direct_inputs = dict(
        pianorolls=pianorolls, masks=masks,
        lengths=tf.to_float([tf.shape(pianorolls)[1]]))

    model = lib_graph.build_graph(
        is_training=False,
        hparams=self.hparams,
        direct_inputs=direct_inputs,
        use_placeholders=False)
    self.logits = model.logits
    return self.logits
def predict ( self , pianorolls , masks ) : direct_inputs = dict ( pianorolls = pianorolls , masks = masks , lengths = tf . to_float ( [ tf . shape ( pianorolls ) [ 1 ] ] ) ) model = lib_graph . build_graph ( is_training = False , hparams = self . hparams , direct_inputs = direct_inputs , use_placeholders = False ) self . logits = model . logits return self . logits