(self, rnn_output, temperature=None)
return sample
Sample from NADE, returning the argmax if no temperature is provided.
Sample from NADE, returning the argmax if no temperature is provided.
Sample from NADE returning the argmax if no temperature is provided .
def _sample(self, rnn_output, temperature=None):
    """Sample from NADE, returning the argmax if no temperature is provided."""
    b_enc, b_dec = tf.split(
        rnn_output, [self._nade.num_hidden, self._output_depth], axis=1)
    sample, _ = self._nade.sample(
        b_enc=b_enc, b_dec=b_dec, temperature=temperature)
    return sample
def _sample ( self , rnn_output , temperature = None ) : b_enc , b_dec = tf . split ( rnn_output , [ self . _nade . num_hidden , self . _output_depth ] , axis = 1 ) sample , _ = self . _nade . sample ( b_enc = b_enc , b_dec = b_dec , temperature = temperature ) return sample