tf.random_normal(
shape,
mean=0.0,
stddev=1.0,
dtype=tf.float32,
seed=None,
name=None
)
Outputs random values from a normal distribution.
输出服从正态分布的随机值。
Args:
shape
: A 1-D integer Tensor or Python array. The shape of the output tensor.mean
: A 0-D Tensor or Python value of typedtype
. The mean of the normal distribution.正态分布的均值,默认是0stddev
: A 0-D Tensor or Python value of typedtype
. The standard deviation of the normal distribution.正态分布方差,默认1dtype
: The type of the output.输出的类型,默认float32seed
: A Python integer. Used to create a random seed for the distribution. Seetf.set_random_seed
for behavior.name
: A name for the operation (optional).