e94a6641dccda6dd7f8ad86fad82e62388548777,keras/initializers/initializers_v2.py,RandomNormal,__call__,#RandomNormal#Any#Any#,297

Before Change


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


@keras_export("keras.initializers.TruncatedNormal",
              "keras.initializers.truncated_normal",

After Change


    dtype = _assert_float_dtype(_get_dtype(dtype))
    if _PARTITION_SHAPE in kwargs:
      shape = kwargs[_PARTITION_SHAPE]
    return self._random_generator.random_normal(shape, self.mean, self.stddev,
                                                dtype)

  def get_config(self):
    return {
        "mean": self.mean,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: RandomNormal
Method Name: __call__


Project Name: keunwoochoi/kapre
Commit Name: a53a9c241d59a1e1cd2ce0d0667cdb399e687236
Time: 2017-01-25
Author: gnuchoi+github@gmail.com
File Name: kapre/augmentation.py
Class Name: AdditiveNoise
Method Name: call


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_normal