e94a6641dccda6dd7f8ad86fad82e62388548777,keras/initializers/initializers_v2.py,Zeros,__call__,#Zeros#Any#Any#,132

Before Change


       (via `tf.keras.backend.set_floatx(float_dtype)`).
      **kwargs: Additional keyword arguments.
    
    return super(Zeros, self).__call__(shape, dtype=_get_dtype(dtype), **kwargs)


@keras_export("keras.initializers.Ones", "keras.initializers.ones", v1=[])
class Ones(tf.ones_initializer, Initializer):

After Change


      **kwargs: Additional keyword arguments.
    
    _validate_kwargs(self.__class__.__name__, kwargs)
    dtype = _get_dtype(dtype)
    if not dtype.is_numpy_compatible or dtype == tf.string:
      raise ValueError("Expected numeric or boolean dtype, got %s." % dtype)
    if _PARTITION_SHAPE in kwargs:
      shape = kwargs[_PARTITION_SHAPE]
    return tf.zeros(shape, dtype)


@keras_export("keras.initializers.Ones", "keras.initializers.ones", v1=[])
class Ones(Initializer):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 25

Instances


Project Name: keras-team/keras
Commit Name: e94a6641dccda6dd7f8ad86fad82e62388548777
Time: 2021-01-06
Author: scottzhu@google.com
File Name: keras/initializers/initializers_v2.py
Class Name: Zeros
Method Name: __call__


Project Name: keras-team/keras
Commit Name: e94a6641dccda6dd7f8ad86fad82e62388548777
Time: 2021-01-06
Author: scottzhu@google.com
File Name: keras/initializers/initializers_v2.py
Class Name: Zeros
Method Name: __call__


Project Name: keras-team/keras
Commit Name: e94a6641dccda6dd7f8ad86fad82e62388548777
Time: 2021-01-06
Author: scottzhu@google.com
File Name: keras/initializers/initializers_v2.py
Class Name: RandomUniform
Method Name: __call__


Project Name: keras-team/keras
Commit Name: e94a6641dccda6dd7f8ad86fad82e62388548777
Time: 2021-01-06
Author: scottzhu@google.com
File Name: keras/initializers/initializers_v2.py
Class Name: Ones
Method Name: __call__