常數¶
常數 - 23¶
版本¶
網域:
main
since_version:
23
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自版本 23 起可用。
摘要¶
此運算子會產生常數張量。必須指定提供的屬性 (value、sparse_value 或 value_*) 其中之一。
屬性¶
sparse_value - SPARSE_TENSOR :
以稀疏格式表示的輸出張量元素值。
value - TENSOR :
輸出張量元素的值。
value_float - FLOAT :
純量、float32、輸出張量的單一元素的值。
value_floats - FLOATS :
1D、float32、輸出張量的元素值。
value_int - INT :
純量、int64、輸出張量的單一元素的值。
value_ints - INTS :
1D、int64、輸出張量的元素值。
value_string - STRING :
純量、UTF-8 字串、輸出張量的單一元素的值。
value_strings - STRINGS :
1D、UTF-8 字串、輸出張量的元素值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型限制¶
T 在 (
tensor(bfloat16)
、tensor(bool)
、tensor(complex128)
、tensor(complex64)
、tensor(double)
、tensor(float)
、tensor(float16)
、tensor(float4e2m1)
、tensor(float8e4m3fn)
、tensor(float8e4m3fnuz)
、tensor(float8e5m2)
、tensor(float8e5m2fnuz)
、tensor(int16)
、tensor(int32)
、tensor(int4)
、tensor(int64)
、tensor(int8)
、tensor(string)
、tensor(uint16)
、tensor(uint32)
、tensor(uint4)
、tensor(uint64)
、tensor(uint8)
)將輸入和輸出類型限制為所有張量類型。
常數 - 21¶
版本¶
網域:
main
since_version:
21
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自版本 21 起可用。
摘要¶
此運算子會產生常數張量。必須指定提供的屬性 (value、sparse_value 或 value_*) 其中之一。
屬性¶
sparse_value - SPARSE_TENSOR :
以稀疏格式表示的輸出張量元素值。
value - TENSOR :
輸出張量元素的值。
value_float - FLOAT :
純量、float32、輸出張量的單一元素的值。
value_floats - FLOATS :
1D、float32、輸出張量的元素值。
value_int - INT :
純量、int64、輸出張量的單一元素的值。
value_ints - INTS :
1D、int64、輸出張量的元素值。
value_string - STRING :
純量、UTF-8 字串、輸出張量的單一元素的值。
value_strings - STRINGS :
1D、UTF-8 字串、輸出張量的元素值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型限制¶
T 類型限制於 (
tensor(bfloat16)
,tensor(bool)
,tensor(complex128)
,tensor(complex64)
,tensor(double)
,tensor(float)
,tensor(float16)
,tensor(float8e4m3fn)
,tensor(float8e4m3fnuz)
,tensor(float8e5m2)
,tensor(float8e5m2fnuz)
,tensor(int16)
,tensor(int32)
,tensor(int4)
,tensor(int64)
,tensor(int8)
,tensor(string)
,tensor(uint16)
,tensor(uint32)
,tensor(uint4)
,tensor(uint64)
,tensor(uint8)
)將輸入和輸出類型限制為所有張量類型。
Constant - 19¶
版本¶
網域:
main
since_version:
19
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此運算符的版本自 版本 19 開始可用。
摘要¶
此運算子會產生常數張量。必須指定提供的屬性 (value、sparse_value 或 value_*) 其中之一。
屬性¶
sparse_value - SPARSE_TENSOR :
以稀疏格式表示的輸出張量元素值。
value - TENSOR :
輸出張量元素的值。
value_float - FLOAT :
純量、float32、輸出張量的單一元素的值。
value_floats - FLOATS :
1D、float32、輸出張量的元素值。
value_int - INT :
純量、int64、輸出張量的單一元素的值。
value_ints - INTS :
1D、int64、輸出張量的元素值。
value_string - STRING :
純量、UTF-8 字串、輸出張量的單一元素的值。
value_strings - STRINGS :
1D、UTF-8 字串、輸出張量的元素值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型約束¶
T 類型限制於 (
tensor(bfloat16)
,tensor(bool)
,tensor(complex128)
,tensor(complex64)
,tensor(double)
,tensor(float)
,tensor(float16)
,tensor(float8e4m3fn)
,tensor(float8e4m3fnuz)
,tensor(float8e5m2)
,tensor(float8e5m2fnuz)
,tensor(int16)
,tensor(int32)
,tensor(int64)
,tensor(int8)
,tensor(string)
,tensor(uint16)
,tensor(uint32)
,tensor(uint64)
,tensor(uint8)
)將輸入和輸出類型限制為所有張量類型。
Constant - 13¶
版本¶
網域:
main
since_version:
13
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此運算符的版本自 版本 13 開始可用。
摘要¶
此運算子會產生常數張量。必須指定提供的屬性 (value、sparse_value 或 value_*) 其中之一。
屬性¶
sparse_value - SPARSE_TENSOR :
以稀疏格式表示的輸出張量元素值。
value - TENSOR :
輸出張量元素的值。
value_float - FLOAT :
純量、float32、輸出張量的單一元素的值。
value_floats - FLOATS :
1D、float32、輸出張量的元素值。
value_int - INT :
純量、int64、輸出張量的單一元素的值。
value_ints - INTS :
1D、int64、輸出張量的元素值。
value_string - STRING :
純量、UTF-8 字串、輸出張量的單一元素的值。
value_strings - STRINGS :
1D、UTF-8 字串、輸出張量的元素值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型約束¶
T 類型限制於 (
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)
)將輸入和輸出類型限制為所有張量類型。
Constant - 12¶
版本¶
網域:
main
since_version:
12
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此運算符的版本自 版本 12 開始可用。
摘要¶
此運算子會產生常數張量。必須指定提供的屬性 (value、sparse_value 或 value_*) 其中之一。
屬性¶
sparse_value - SPARSE_TENSOR :
以稀疏格式表示的輸出張量元素值。
value - TENSOR :
輸出張量元素的值。
value_float - FLOAT :
純量、float32、輸出張量的單一元素的值。
value_floats - FLOATS :
1D、float32、輸出張量的元素值。
value_int - INT :
純量、int64、輸出張量的單一元素的值。
value_ints - INTS :
1D、int64、輸出張量的元素值。
value_string - STRING :
純量、UTF-8 字串、輸出張量的單一元素的值。
value_strings - STRINGS :
1D、UTF-8 字串、輸出張量的元素值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型約束¶
T 類型限制於 (
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)
)將輸入和輸出類型限制為所有張量類型。
Constant - 11¶
版本¶
網域:
main
since_version:
11
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此運算符的版本自 版本 11 開始可用。
摘要¶
一個常數張量。必須指定兩個屬性中的一個,即值或稀疏值。
屬性¶
sparse_value - SPARSE_TENSOR :
以稀疏格式表示的輸出張量元素值。
value - TENSOR :
輸出張量元素的值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型約束¶
T 類型限制於 (
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)
)將輸入和輸出類型限制為所有張量類型。
Constant - 9¶
版本¶
網域:
main
since_version:
9
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此運算符的版本自 版本 9 開始可用。
摘要¶
一個常數張量。
屬性¶
value - TENSOR (必填)
輸出張量元素的值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型約束¶
T 類型限制於 (
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)
)將輸入和輸出類型限制為所有張量類型。
Constant - 1¶
版本¶
網域:
main
since_version:
1
函式:
False
支援等級:
SupportType.COMMON
形狀推斷:
True
此運算符的版本自 版本 1 開始可用。
摘要¶
一個常數張量。
屬性¶
value - TENSOR (必填)
輸出張量元素的值。
輸出¶
output (異質) - T
包含與所提供張量相同值的輸出張量。
類型約束¶
T 類型限制於 (
tensor(double)
,tensor(float)
,tensor(float16)
)將輸入和輸出類型限制為浮點張量。