ade1963
Results
1
comments of
ade1963
Try such code: ` if config.NUM_SAMPLES > 0 and config.NUM_SAMPLES < config.DEC_VOCAB: w_t = tf.get_variable('proj_w', [config.DEC_VOCAB, config.HIDDEN_SIZE]) w = tf.transpose(w_t) b = tf.get_variable('proj_b', [config.DEC_VOCAB]) self.output_projection = (w, b) def sampled_loss(labels,...