352ebffaa5bd74a454c3b2b10121b2d959ade2fc,opennmt/models/sequence_tagger.py,SequenceTagger,_build,#SequenceTagger#Any#Any#Any#Any#,49

Before Change


        // so replicate the transition matrix accordingly.
        transition_params = tf.convert_to_tensor(transition_params)
        transition_params = tf.expand_dims(transition_params, axis=0)
        transition_params = tf.tile(transition_params, [tf.shape(logits)[0], 1, 1])

        predictions["logits"] = logits
        predictions["transition_params"] = transition_params

After Change


          logits,
          transition_params,
          encoder_sequence_length)
        labels = tf.cast(labels, tf.int64)
      else:
        probs = tf.nn.softmax(logits)
        labels = tf.argmax(probs, axis=2)

      labels_vocab_rev = tf.contrib.lookup.index_to_string_table_from_file(
        self.labels_vocabulary_file,
        vocab_size=self.num_labels)

      predictions = {}
      predictions["length"] = encoder_sequence_length
      predictions["labels"] = labels_vocab_rev.lookup(labels)

      return tf.estimator.EstimatorSpec(
        mode,
        predictions=predictions)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 352ebffaa5bd74a454c3b2b10121b2d959ade2fc
Time: 2017-08-22
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: 352ebffaa5bd74a454c3b2b10121b2d959ade2fc
Time: 2017-08-22
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_tagger.py
Class Name: SequenceTagger
Method Name: _build


Project Name: dpressel/mead-baseline
Commit Name: 41754da1aa33ddf26ffe34e2eab9c151c721c5d7
Time: 2020-02-25
Author: dpressel@gmail.com
File Name: layers/eight_mile/tf/layers.py
Class Name: TaggerGreedyDecoder
Method Name: neg_log_loss


Project Name: tensorflow/models
Commit Name: b0a6416ecd2b8e35c56ad42cccc4e0e6f012567f
Time: 2020-10-21
Author: anirudh.vegesana@gmail.com
File Name: official/vision/beta/dataloaders/classification_input.py
Class Name: Parser
Method Name: _parse_train_data