b08f3062c96677de266af26767634fd7c6e6611d,GPflow/tf_hacks.py,,eye,#Any#,26

Before Change




def eye(N):
    return tf.diag(tf.ones(tf.pack([N, ]), dtype="float64"))


_custom_op_module = tf.load_op_library(os.path.join(os.path.dirname(__file__), "tfops", "matpackops.so"))
vec_to_tri = _custom_op_module.vec_to_tri

After Change



def eye(N):  // pragma: no cover
    warnings.warn("tf_hacks is deprecated: use tf_wraps instead", np.VisibleDeprecationWarning)
    return tf_wraps.eye(N)


def vec_to_tri(N):  // pragma: no cover
    warnings.warn("tf_hacks is deprecated: use tf_wraps instead", np.VisibleDeprecationWarning)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: b08f3062c96677de266af26767634fd7c6e6611d
Time: 2016-09-09
Author: alexggmatthews@googlemail.com
File Name: GPflow/tf_hacks.py
Class Name:
Method Name: eye


Project Name: GPflow/GPflow
Commit Name: 456b9ed099cc5f7e99880371ac9d1924095769f3
Time: 2017-05-26
Author: joachim.vanderherten@ugent.be
File Name: GPflow/transforms.py
Class Name: Log1pe
Method Name: backward


Project Name: keras-team/keras
Commit Name: 7c84229f350b83ce397b8c65e52e333e99b6d19d
Time: 2019-03-04
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: random_binomial