97aba3c01eaebd8123974eea22b0ddb739a51555,opennmt/models/sequence_tagger.py,SequenceTagger,_build,#SequenceTagger#Any#Any#Any#Any#,61
Before Change
encoder_outputs, _, encoder_sequence_length = self.encoder.encode(
inputs,
sequence_length=features["length"],
mode=mode)
with tf.variable_scope("generator"):
After Change
return dataset, process_fn, padded_shapes_fn
def _build(self, features, labels, params, mode):
length = self._get_features_length(features)
with tf.variable_scope("encoder"):
inputs = self.inputter.transform_data(
features,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 97aba3c01eaebd8123974eea22b0ddb739a51555
Time: 2017-09-25
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: 97aba3c01eaebd8123974eea22b0ddb739a51555
Time: 2017-09-25
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: 97aba3c01eaebd8123974eea22b0ddb739a51555
Time: 2017-09-25
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_classifier.py
Class Name: SequenceClassifier
Method Name: _build