d8c2e2e64a92923f1448cf5302c92a80bb469a20,tensorflow_ranking/python/feature.py,,encode_listwise_features,#Any#Any#Any#Any#Any#Any#,109

Before Change


    reshaped_features = {}
    for name in example_feature_columns:
      if name not in features:
        continue
      batch_size = tf.shape(input=features[name])[0]
      try:
        reshaped_features[name] = utils.reshape_first_ndims(
            features[name], 2, [batch_size * input_size])

After Change


    reshaped_features = {}
    for name in example_specs:
      if name not in features:
        tf.compat.v1.logging.warn("Feature {} is not found.".format(name))
        continue
      batch_size = tf.shape(input=features[name])[0]
      try:
        reshaped_features[name] = utils.reshape_first_ndims(
            features[name], 2, [batch_size * input_size])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/ranking
Commit Name: d8c2e2e64a92923f1448cf5302c92a80bb469a20
Time: 2019-06-27
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/feature.py
Class Name:
Method Name: encode_listwise_features


Project Name: soft-matter/trackpy
Commit Name: b03a6733d746e3b0d9a01110d323cb006be222c9
Time: 2019-02-13
Author: verweij@physics.leidenuniv.nl
File Name: trackpy/locate_functions/brightfield_ring.py
Class Name:
Method Name: locate_brightfield_ring


Project Name: pyinstaller/pyinstaller
Commit Name: d84e0727489a8f12d893ee43ba0e029980f7686c
Time: 2015-09-29
Author: mzibr.public@gmail.com
File Name: PyInstaller/building/api.py
Class Name: PKG
Method Name: assemble


Project Name: pytorch/contrib
Commit Name: 3a7d1a1831024c8085344535c55ae7af20a784d9
Time: 2018-07-28
Author: izmailovpavel@gmail.com
File Name: torchcontrib/optim/swa.py
Class Name: SWA
Method Name: swap_swa_sgd