RandomNormalLike

RandomNormalLike - 22

版本

  • 名称: RandomNormalLike (GitHub)

  • : main

  • 起始版本: 22

  • 函数: False

  • 支持级别: SupportType.COMMON

  • Shape 推断: True

此版本的算子自版本 22 起可用。

摘要

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

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

属性

  • dtype - INT :

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

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

    正态分布的均值。

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

    正态分布的标准差。

  • seed - FLOAT :

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

输入

  • input (异构) - T1

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

输出

  • output (异构) - T2

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

类型约束

  • T1 在 ( 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 在 ( tensor(bfloat16), tensor(double), tensor(float), tensor(float16) ) 中¶

    约束输出类型为浮点张量。

RandomNormalLike - 1

版本

  • 名称: RandomNormalLike (GitHub)

  • : main

  • 起始版本: 1

  • 函数: False

  • 支持级别: SupportType.COMMON

  • Shape 推断: True

此版本的算子自版本 1 起可用。

摘要

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

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

属性

  • dtype - INT :

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

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

    正态分布的均值。

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

    正态分布的标准差。

  • seed - FLOAT :

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

输入

  • input (异构) - T1

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

输出

  • output (异构) - T2

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

类型约束

  • T1 在 ( 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 在 ( tensor(double), tensor(float), tensor(float16) ) 中¶

    约束输出类型为浮点张量。