777107312382e292dadba091de1d2a64998c23b5,official/modeling/tf_utils.py,,get_activation,#Any#,93

Before Change


        "tanh": tf.nn.tanh,
    }
    identifier = str(identifier).lower()
    if identifier not in name_to_fn:
      raise ValueError("Unsupported activation function: %s" % (identifier))
    return name_to_fn[identifier]
  elif callable(identifier):
    return identifier
  else:

After Change


  
  if isinstance(identifier, six.string_types):
    name_to_fn = {
        "gelu": activations.gelu,
        "custom_swish": activations.swish,
    }
    identifier = str(identifier).lower()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: tensorflow/models
Commit Name: 777107312382e292dadba091de1d2a64998c23b5
Time: 2019-09-30
Author: hongkuny@google.com
File Name: official/modeling/tf_utils.py
Class Name:
Method Name: get_activation


Project Name: markovmodel/PyEMMA
Commit Name: fb858d97347da7fe73103668e2276c584f93677b
Time: 2016-12-14
Author: feliks.nueske@fu-berlin.de
File Name: pyemma/msm/estimators/maximum_likelihood_msm.py
Class Name: MaximumLikelihoodMSM
Method Name: __init__


Project Name: scipy/scipy
Commit Name: f7d001566c4bb5cd26e8009130edff938397b43d
Time: 2017-02-13
Author: eric.antonio.quintero@gmail.com
File Name: scipy/signal/spectral.py
Class Name:
Method Name: _spectral_helper


Project Name: metric-learn/metric-learn
Commit Name: 23d07466961fa7a72aa8692bc42d6d569b80c5c9
Time: 2019-01-02
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/lfda.py
Class Name: LFDA
Method Name: __init__