RandomNormalLike

RandomNormalLike - 22

版本

  • 名称: RandomNormalLike (GitHub)

  • : main

  • 起始版本: 22

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

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

摘要

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

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

属性

  • dtype - INT :

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

  • mean - 浮点数(默认为 '0.0'

    正态分布的均值。

  • scale - 浮点数(默认为 '1.0'

    正态分布的标准差。

  • 种子 - 浮点型 :

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

输入

  • input (异构) - T1

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

输出

  • 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

  • 形状推断: True

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

摘要

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

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

属性

  • dtype - INT :

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

  • mean - 浮点数(默认为 '0.0'

    正态分布的均值。

  • scale - 浮点数(默认为 '1.0'

    正态分布的标准差。

  • 种子 - 浮点型 :

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

输入

  • input (异构) - T1

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

输出

  • 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) )

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