dec0c7b7aeddab2b31b55ccb015d7e0735206d59,keras/backend/tensorflow_backend.py,,ones,#Any#Any#Any#,684
Before Change
if dtype is None:
dtype = floatx()
tf_dtype = tf.as_dtype(dtype)
return variable(tf.constant_initializer(1., dtype=tf_dtype)(shape),
dtype, name)
def eye(size, dtype=None, name=None):
Instantiate an identity matrix and returns it.
After Change
v = tf.ones(shape=shape, dtype=tf_dtype, name=name)
if py_all(v.get_shape().as_list()):
return variable(v, dtype=dtype, name=name)
return v
def eye(size, dtype=None, name=None):
Instantiate an identity matrix and returns it.
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances Project Name: keras-team/keras
Commit Name: dec0c7b7aeddab2b31b55ccb015d7e0735206d59
Time: 2017-12-02
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: ones
Project Name: keras-team/keras
Commit Name: dec0c7b7aeddab2b31b55ccb015d7e0735206d59
Time: 2017-12-02
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: zeros
Project Name: tensorflow/models
Commit Name: f8b0067f803286953f124c83d2a4e9ba4bd63a32
Time: 2017-06-27
Author: rathodv@google.com
File Name: object_detection/exporter_test.py
Class Name: FakeModel
Method Name: preprocess
Project Name: dpressel/mead-baseline
Commit Name: 6f46288188d2124d0712187b9d4b2d9d105b5c4d
Time: 2019-02-13
Author: dpressel@gmail.com
File Name: python/baseline/tf/embeddings.py
Class Name: LookupTableEmbeddings
Method Name: encode
Project Name: tensorflow/models
Commit Name: f33ffcc224fe6549bc2c10cf3597b702459d64fc
Time: 2017-06-27
Author: rathodv@google.com
File Name: object_detection/exporter_test.py
Class Name: FakeModel
Method Name: preprocess