b045ce7d71c64336e34589d20993bbbed2399806,official/nlp/xlnet_modeling.py,TransformerXLModel,call,#TransformerXLModel#Any#,774

Before Change


    else:
      non_tgt_mask = None

    word_emb_k, _ = self.embedding_lookup(inp_k)

    if inp_q is not None:
      if target_mapping is not None:

After Change


            tf.equal(seg_id, tf.constant([data_utils.SEG_ID_CLS]))[:, None],
            tf.equal(cat_id, tf.constant([data_utils.SEG_ID_CLS]))[None, :])
        seg_mat = tf.equal(seg_id[:, None], cat_id[None, :])
        seg_mat = tf.logical_or(cls_mat, seg_mat)
      else:
        seg_mat = tf.logical_not(tf.equal(seg_id[:, None], cat_id[None, :]))
    else:
      seg_mat = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/models
Commit Name: b045ce7d71c64336e34589d20993bbbed2399806
Time: 2019-10-03
Author: hongkuny@google.com
File Name: official/nlp/xlnet_modeling.py
Class Name: TransformerXLModel
Method Name: call


Project Name: PyMVPA/PyMVPA
Commit Name: 526e1524c4c55b08503c35a4af91ca3d0623baf8
Time: 2010-01-04
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_datameasure.py
Class Name: SensitivityAnalysersTests
Method Name: testLinearSVMWeightsPerClass


Project Name: craffel/mir_eval
Commit Name: ac94d1ce59c97a1bc9217daf7d20d3d5220dad42
Time: 2020-04-06
Author: rmb456@nyu.edu
File Name: mir_eval/melody.py
Class Name:
Method Name: resample_melody_series