RandomNormalLike

RandomNormalLike - 22

版本

  • 名称: RandomNormalLike (GitHub)

  • : main

  • 起始版本: 22

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的运算符自 版本 22 起可用。

摘要

生成一个从正态分布中抽取随机值的张量。输出张量的形状从输入张量复制,正态分布的参数由 meanscale 指定。

数据类型由 'dtype' 参数指定,如果未提供,则从输入张量复制。'dtype' 参数必须是 TensorProto 消息中的 'DataType' 枚举字段中指定的数据类型之一,并且是有效的输出类型。

属性

  • dtype - INT :

    (可选) 输出张量元素的数据类型,如果未指定,我们将使用输入张量的数据类型。

  • mean - FLOAT (默认值是 '0.0')

    正态分布的均值。

  • scale - FLOAT (默认值是 '1.0')

    正态分布的标准差。

  • 种子 - 浮点型 :

    (可选)随机生成器的种子,如果未指定,我们将自动生成一个。

输入

  • input (异构) - T1

    用于复制形状和可选类型信息的输入张量。

输出

  • output (异构) - T2

    从正态分布中抽取随机值的输出张量

类型约束

  • T1 in ( tensor(bfloat16), tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) )

    限制为任何张量类型。如果未提供 dtype 属性,则此类型必须是有效输出类型。

  • T2 in ( tensor(bfloat16), tensor(double), tensor(float), tensor(float16) )

    将输出类型限制为浮点张量。

RandomNormalLike - 1

版本

  • 名称: RandomNormalLike (GitHub)

  • : main

  • 起始版本: 1

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的运算符自 版本 1 起可用。

摘要

生成一个从正态分布中抽取随机值的张量。输出张量的形状从输入张量复制,正态分布的参数由 meanscale 指定。

数据类型由 'dtype' 参数指定,如果未提供,则从输入张量复制。'dtype' 参数必须是 TensorProto 消息中的 'DataType' 枚举字段中指定的数据类型之一,并且是有效的输出类型。

属性

  • dtype - INT :

    (可选) 输出张量元素的数据类型,如果未指定,我们将使用输入张量的数据类型。

  • mean - FLOAT (默认值是 '0.0')

    正态分布的均值。

  • scale - FLOAT (默认值是 '1.0')

    正态分布的标准差。

  • 种子 - 浮点型 :

    (可选)随机生成器的种子,如果未指定,我们将自动生成一个。

输入

  • input (异构) - T1

    用于复制形状和可选类型信息的输入张量。

输出

  • output (异构) - T2

    从正态分布中抽取随机值的输出张量

类型约束

  • T1 in ( tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) )

    限制为任何张量类型。如果未提供 dtype 属性,则此类型必须是有效输出类型。

  • T2 in ( tensor(double), tensor(float), tensor(float16) )

    将输出类型限制为浮点张量。