5a8b3ae5c48e299844e808e15e53b01ac0941cf1,opennmt/models/sequence_to_sequence.py,SequenceToSequence,_build,#SequenceToSequence#Any#Any#Any#Any#,79
Before Change
if mode != tf.estimator.ModeKeys.PREDICT:
loss = masked_sequence_loss(
decoder_outputs,
self.target_embedder.get_data_field(labels, "ids_out"),
self._labels_length(labels))
return tf.estimator.EstimatorSpec(
After Change
if mode != tf.estimator.ModeKeys.PREDICT:
loss = masked_sequence_loss(
decoder_outputs,
labels["ids_out"],
labels["length"])
return tf.estimator.EstimatorSpec(
mode,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 5a8b3ae5c48e299844e808e15e53b01ac0941cf1
Time: 2017-08-23
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_to_sequence.py
Class Name: SequenceToSequence
Method Name: _build
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 5a8b3ae5c48e299844e808e15e53b01ac0941cf1
Time: 2017-08-23
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_tagger.py
Class Name: SequenceTagger
Method Name: _build
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 5a8b3ae5c48e299844e808e15e53b01ac0941cf1
Time: 2017-08-23
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_to_sequence.py
Class Name: SequenceToSequence
Method Name: _build
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 5a8b3ae5c48e299844e808e15e53b01ac0941cf1
Time: 2017-08-23
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_to_sequence.py
Class Name: SequenceToSequence
Method Name: _shift_target