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
dtype = floatx()
tf_dtype = tf.as_dtype(dtype)
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
In pattern: SUPERPATTERN
Frequency: 3
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: tensorlayer/tensorlayer
Commit Name: 87aeace11d364ece7c8fae8ddab02786e5a2492e
Time: 2019-01-23
Author: zhangjqsmiling@gmail.com
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: _inputs_shape