(Attention is all you need)机器翻译模型Transformer代码详细解析(转)
mark一下,感谢作者分享!由于tensorflow版本升级,源代码会报错!File“/home/ashishkr/projects/python/transformer/modules.py”,line227,inmultihead_attentiontril=tf.contrib.linalg.LinearOperatorTriL(diag_vals).to_dense()#(T_q,T_k)