Instantiates a variable with values drawn from a normal distribution.
View aliases
Compat aliases for migration
See Migration guide for more details.
tf.keras.backend.random_normal_variable(
shape, mean, scale, dtype=None, name=None, seed=None
)
Arguments | |
---|---|
shape
|
Tuple of integers, shape of returned Keras variable. |
mean
|
Float, mean of the normal distribution. |
scale
|
Float, standard deviation of the normal distribution. |
dtype
|
String, dtype of returned Keras variable. |
name
|
String, name of returned Keras variable. |
seed
|
Integer, random seed. |
Returns | |
---|---|
A Keras variable, filled with drawn samples. |
Example:
kvar = tf.keras.backend.random_normal_variable(shape=(2,3),
mean=0.0, scale=1.0)
kvar
<tf.Variable 'Variable:0' shape=(2, 3) dtype=float32, numpy=...,
dtype=float32)>