RandomNormalLike¶
RandomNormalLike - 22¶
版本¶
網域:
main
since_version:
22
函數:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自版本 22 起可用。
摘要¶
產生一個從常態分佈中提取隨機值的張量。輸出張量的形狀從輸入張量的形狀複製,常態分佈的參數由 mean
和 scale
指定。
資料類型由 'dtype' 引數指定,如果未提供,則從輸入張量複製。 'dtype' 引數必須是 TensorProto 訊息中 'DataType' 列舉欄位中指定的其中一種資料類型,且作為輸出類型有效。
屬性¶
dtype - INT :
(可選) 輸出張量元素的資料類型,如果未指定,我們將使用輸入張量的資料類型。
mean - FLOAT (預設值為
'0.0'
)常態分佈的平均值。
scale - FLOAT (預設值為
'1.0'
)常態分佈的標準差。
seed - FLOAT :
(可選) 隨機產生器的種子,如果未指定,我們將自動產生一個。
輸入¶
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¶
版本¶
網域:
main
since_version:
1
函數:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自版本 1 起可用。
摘要¶
產生一個從常態分佈中提取隨機值的張量。輸出張量的形狀從輸入張量的形狀複製,常態分佈的參數由 mean
和 scale
指定。
資料類型由 'dtype' 引數指定,如果未提供,則從輸入張量複製。 'dtype' 引數必須是 TensorProto 訊息中 'DataType' 列舉欄位中指定的其中一種資料類型,且作為輸出類型有效。
屬性¶
dtype - INT :
(可選) 輸出張量元素的資料類型,如果未指定,我們將使用輸入張量的資料類型。
mean - FLOAT (預設值為
'0.0'
)常態分佈的平均值。
scale - FLOAT (預設值為
'1.0'
)常態分佈的標準差。
seed - FLOAT :
(可選) 隨機產生器的種子,如果未指定,我們將自動產生一個。
輸入¶
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)
)將輸出類型限制為浮點張量。