6aa255e3d273a78612a68e648a761f3d830e319c,thumt/models/rnnsearch.py,,model_graph,#,184
Before Change
maxlen=tf.shape(features["target"])[1]
)
)
loss = tf.reduce_sum(ce * tgt_mask) / tf.reduce_sum(tgt_mask)
return loss
After Change
maxlen=tf.shape(features["target"])[1]
)
)
loss = get_loss(features, params, ce, tgt_mask)
return loss
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: THUNLP-MT/THUMT
Commit Name: 6aa255e3d273a78612a68e648a761f3d830e319c
Time: 2017-11-17
Author: grit31@126.com
File Name: thumt/models/rnnsearch.py
Class Name:
Method Name: model_graph
Project Name: THUNLP-MT/THUMT
Commit Name: 6aa255e3d273a78612a68e648a761f3d830e319c
Time: 2017-11-17
Author: grit31@126.com
File Name: thumt/models/transformer.py
Class Name:
Method Name: model_graph
Project Name: THUNLP-MT/THUMT
Commit Name: 6aa255e3d273a78612a68e648a761f3d830e319c
Time: 2017-11-17
Author: grit31@126.com
File Name: thumt/models/seq2seq.py
Class Name:
Method Name: model_graph