小於或等於¶
小於或等於 - 16¶
版本¶
網域:
main
自版本:
16
函式:
True
支援層級:
SupportType.COMMON
形狀推斷:
False
此版本的運算子自版本 16 起可用。
摘要¶
傳回對輸入張量 A
和 B
逐元素執行 less_equal
邏輯運算(具有 Numpy 風格的廣播支援)所得的張量。
此運算子支援多方向(即 Numpy 風格)廣播;如需更多詳細資訊,請查看ONNX 中的廣播。
函式主體¶
此運算子的函式定義。
<
domain: "",
opset_import: ["" : 16]
>
LessOrEqual (A, B) => (C)
{
O1 = Less (A, B)
O2 = Equal (A, B)
C = Or (O1, O2)
}
輸入¶
A(異質) - T
邏輯運算子的第一個輸入運算元。
B(異質) - T
邏輯運算子的第二個輸入運算元。
輸出¶
C(異質) - T1
結果張量。
類型約束¶
T 取值於 (
tensor(bfloat16)
,tensor(double)
,tensor(float)
,tensor(float16)
,tensor(int16)
,tensor(int32)
,tensor(int64)
,tensor(int8)
,tensor(uint16)
,tensor(uint32)
,tensor(uint64)
,tensor(uint8)
)將輸入類型限制為所有數值張量。
T1 取值於 (
tensor(bool)
)將輸出限制為布林張量。
小於或等於 - 12¶
版本¶
網域:
main
自版本:
12
函式:
True
支援層級:
SupportType.COMMON
形狀推斷:
False
此版本的運算子自版本 12 起可用。
摘要¶
傳回對輸入張量 A
和 B
逐元素執行 less_equal
邏輯運算(具有 Numpy 風格的廣播支援)所得的張量。
此運算子支援多方向(即 Numpy 風格)廣播;如需更多詳細資訊,請查看ONNX 中的廣播。
函式主體¶
此運算子的函式定義。
<
domain: "",
opset_import: ["" : 12]
>
LessOrEqual (A, B) => (C)
{
O1 = Less (A, B)
O2 = Equal (A, B)
C = Or (O1, O2)
}
輸入¶
A(異質) - T
邏輯運算子的第一個輸入運算元。
B(異質) - T
邏輯運算子的第二個輸入運算元。
輸出¶
C(異質) - T1
結果張量。
類型約束¶
T 取值於 (
tensor(double)
,tensor(float)
,tensor(float16)
,tensor(int16)
,tensor(int32)
,tensor(int64)
,tensor(int8)
,tensor(uint16)
,tensor(uint32)
,tensor(uint64)
,tensor(uint8)
)將輸入類型限制為所有數值張量。
T1 取值於 (
tensor(bool)
)將輸出限制為布林張量。