5a8b3ae5c48e299844e808e15e53b01ac0941cf1,opennmt/models/sequence_tagger.py,SequenceTagger,_build,#SequenceTagger#Any#Any#Any#Any#,57
Before Change
log_likelihood, transition_params = tf.contrib.crf.crf_log_likelihood(
logits,
tf.cast(labels, tf.int32),
self._features_length(features))
loss = tf.reduce_mean(-log_likelihood)
else:
loss = masked_sequence_loss(
After Change
encoder_outputs, encoder_states, encoder_sequence_length = self.encoder.encode(
inputs,
sequence_length=features["length"],
mode=mode)
with tf.variable_scope("generator"):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
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_classifier.py
Class Name: SequenceClassifier
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