def random_normal(shape, mean=0.0, stddev=1.0, dtype=dtypes.float32, seed=None, name=None): return ops.RandomNormal(shape, mean, stddev)
def __call__(self, shape, dtype=None, **kwargs): if dtype is None: dtype = self.dtype return _ops.RandomNormal( shape=shape, mean=self.mean, std=self.stddev, dtype=dtype.name, )
def random_normal(shape, mean=0.0, stddev=1.0, dtype=dtypes.float32, name=None): """ Outputs random values from a normal distribution. Args: shape: A 1-D integer Python array. The shape of the output tensor. mean: A 0-D Python value of type `dtype`. The mean of the normal distribution. stddev: A 0-D Python value of type `dtype`. The standard deviation of the normal distribution. dtype: The type of the output. name: A name for the operation (optional). Returns: A tensor of the specified shape filled with random normal values. """ return ops.RandomNormal(shape, mean, stddev, name=None)
def __call__(self, shape, dtype=None): if dtype is None: dtype = self.dtype return ops.RandomNormal(shape, self.mean, self.stddev)