美文网首页Tensorflow
TensorFlow学习笔记(18)random_ops.ran

TensorFlow学习笔记(18)random_ops.ran

作者: 谢昆明 | 来源:发表于2018-11-21 09:55 被阅读0次

随机正态分布

tf.random.normal(
    shape,
    mean=0.0,
    stddev=1.0,
    dtype=tf.float32,
    seed=None,
    name=None
)
  • shape: A 1-D integer Tensor or Python array. The shape of the output tensor.
    输出张量的形状,必选
  • mean: A 0-D Tensor or Python value of type dtype. The mean of the normal distribution.
    正态分布的均值,默认为0
  • stddev: A 0-D Tensor or Python value of type dtype. The standard deviation of the normal distribution.
    正态分布的标准差,默认为1.0
  • dtype: The type of the output.
  • seed: A Python integer. Used to create a random seed for the distribution. See tf.set_random_seed for behavior.
  • name: A name for the operation (optional).

相关文章

网友评论

    本文标题:TensorFlow学习笔记(18)random_ops.ran

    本文链接:https://www.haomeiwen.com/subject/fadqqqtx.html