RandomNormal¶
RandomNormal - 22¶
版本¶
網域:
main
since_version:
22
function:
False
support_level:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自 22 版開始提供。
摘要¶
產生一個張量,其隨機值取自常態分佈。張量的形狀由 shape
引數指定,而常態分佈的參數則由 mean
和 scale
指定。
資料類型由 'dtype' 引數指定。'dtype' 引數必須是 TensorProto 訊息中 'DataType' 列舉欄位中指定的資料類型之一。
屬性¶
dtype - INT (預設值為
'1'
)輸出張量元素的資料類型。預設值為 TensorProto::FLOAT。
mean - FLOAT (預設值為
'0.0'
)常態分佈的平均值。
scale - FLOAT (預設值為
'1.0'
)常態分佈的標準差。
seed - FLOAT :
(選用) 隨機產生器的種子,如果未指定,我們將自動產生一個。
shape - INTS (必要)
輸出張量的形狀。
輸出¶
output (異質) - T
取自常態分佈的隨機值輸出張量
類型限制¶
T 於 (
tensor(bfloat16)
,tensor(double)
,tensor(float)
,tensor(float16)
)將輸出類型限制為浮點數張量。
RandomNormal - 1¶
版本¶
網域:
main
since_version:
1
function:
False
support_level:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自 1 版開始提供。
摘要¶
產生一個張量,其隨機值取自常態分佈。張量的形狀由 shape
引數指定,而常態分佈的參數則由 mean
和 scale
指定。
資料類型由 'dtype' 引數指定。'dtype' 引數必須是 TensorProto 訊息中 'DataType' 列舉欄位中指定的資料類型之一。
屬性¶
dtype - INT (預設值為
'1'
)輸出張量元素的資料類型。預設值為 TensorProto::FLOAT。
mean - FLOAT (預設值為
'0.0'
)常態分佈的平均值。
scale - FLOAT (預設值為
'1.0'
)常態分佈的標準差。
seed - FLOAT :
(選用) 隨機產生器的種子,如果未指定,我們將自動產生一個。
shape - INTS (必要)
輸出張量的形狀。
輸出¶
output (異質) - T
取自常態分佈的隨機值輸出張量
類型限制¶
T 於 (
tensor(double)
,tensor(float)
,tensor(float16)
)將輸出類型限制為浮點數張量。