dec0c7b7aeddab2b31b55ccb015d7e0735206d59,keras/backend/tensorflow_backend.py,,zeros,#Any#Any#Any#,656
Before Change
if dtype is None:
dtype = floatx()
tf_dtype = tf.as_dtype(dtype)
return variable(tf.constant_initializer(0., dtype=tf_dtype)(shape),
dtype, name)
def ones(shape, dtype=None, name=None):
Instantiates an all-ones tensor variable and returns it.
After Change
if dtype is None:
dtype = floatx()
tf_dtype = tf.as_dtype(dtype)
v = tf.zeros(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 ones(shape, dtype=None, name=None):
Instantiates an all-ones variable and returns it.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
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: zeros
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: e361a26463bfda37c42acd3df1e4efb6d97215fe
Time: 2019-04-06
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: eye