【发布时间】:2017-08-03 02:57:40
【问题描述】:
Tensorflow translate.py 示例的代码here 让我很困惑。复制的代码是:
# This is a greedy decoder - outputs are just argmaxes of output_logits.
outputs = [int(np.argmax(logit, axis=1)) for logit in output_logits]
为什么argmax 有效?
output_logits 的形状是[bucket_length,batch_size,embedding_size]
【问题讨论】:
标签: tensorflow neural-network nlp deep-learning machine-translation