Operasi HLO Klien
Dialek ini berisi operasi yang sangat sesuai dengan area permukaan API
dari XlaBuilder C++ API, di mana operasi tersebut memiliki semantik yang melampaui
apa yang ada dalam dialek tingkat yang lebih rendah (seperti stablehlo). Pada dasarnya,
setiap kali library klien menggunakan gula sintaksis atau komposisi
beberapa operasi untuk panggilan API, dialek ini mencoba memodelkan panggilan API
dan menyediakan pola konversi untuk sepenuhnya terwujud dalam dialek
tingkat yang lebih rendah.
Operasi
chlo._asin_acos_kernel (chlo::AsinAcosKernelOp)
Operator AsinAcosKernel
Sintaksis:
operation ::= `chlo._asin_acos_kernel` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan AsinAcosKernel(operand) per elemen.
If
w = _asin_acos_kernel(z)
w' = _asin_acos_kernel(I * z)
Then
asin(z) = complex(atan2(z.real, w.real), sign(z.imag) * w.imag)
acos(z) = complex(atan2(w.real, z.real), -sign(z.imag) * w.imag)
asinh(z) = complex(sign(z.real) * w'.imag, atan2(z.imag, w'.real))
acosh(z) = complex(w.imag, sign(z.imag) * atan2(w.real, z.real))
Op ini digunakan sebagai nilai perantara dalam dekomposisi dan tidak boleh dibuat secara langsung oleh framework atau digunakan oleh backend.
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis kompleks dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis kompleks dengan nilai elemen float 32/64-bit |
chlo.acos (chlo::AcosOp)
Operator Acos
Sintaksis:
operation ::= `chlo.acos` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Acos(operand) per elemen.
\[ \acos(x) = 2 * \atan(\sqrt(1 - x^2) / (1 + x)) if x != -1 = pi if x == -1 \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.acosh (chlo::AcoshOp)
Operasi Acosh
Sintaksis:
operation ::= `chlo.acosh` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Acosh(operand) per elemen.
\[ \acosh(x) = log(x + sqrt(x^2 - 1)) if x >= -1 \acosh(x) = nan if x < -1 \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.asin (chlo::AsinOp)
Operator asin
Sintaksis:
operation ::= `chlo.asin` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Asin(operand) per elemen.
\[ \asin(x) = 2 * atan(x / (1 + sqrt(1 - x^2))) \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.asinh (chlo::AsinhOp)
Operasi asinh
Sintaksis:
operation ::= `chlo.asinh` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Asinh(operand) per elemen.
\[ \asinh(x) = log(x + sqrt(x^2 + 1)) \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.atan (chlo::AtanOp)
Operator atan
Sintaksis:
operation ::= `chlo.atan` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Atan(operand) per elemen.
\[ \atan(x) = \atan2(x, 1) \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.atanh (chlo::AtanhOp)
Operator atanh
Sintaksis:
operation ::= `chlo.atanh` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Atanh(operand) per elemen.
\[ \atanh(x) = 0.5 * log((1 + x) / (1 - x)) if abs(x) <= 1 = nan otherwise \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.bessel_i1e (chlo::BesselI1eOp)
Fungsi Bessel orde 1
Sintaksis:
operation ::= `chlo.bessel_i1e` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan bessel_i1e(operand) per elemen.
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.broadcast_add (chlo::BroadcastAddOp)
Operator penambahan (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_add` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs + rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, Commutative, HLO_BroadcastingElementwise, HLO_CompatibleOperandsAndResultElementType, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_and (chlo::BroadcastAndOp)
Operator dan logis (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_and` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan logical_and(lhs, rhs) per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, Commutative, HLO_BroadcastingElementwise, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor nilai bilangan bulat bool atau 2/4/8/16/32/64-bit |
rhs |
tensor nilai bilangan bulat bool atau 2/4/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_atan2 (chlo::BroadcastAtan2Op)
Operator Atan2 (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_atan2` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan atan2(lhs/rhs) per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_compare (chlo::BroadcastCompareOp)
Operator perbandingan (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_compare` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Membandingkan lhs dan rhs berdasarkan elemen menurut comparison_direction
dan compare_type. Jika tidak ditentukan, compare_type adalah FLOAT untuk jenis elemen float, SIGNED untuk jenis elemen bertanda, dan UNSIGNED untuk jenis elemen tidak bertanda.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_comparison_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
comparison_direction | ::mlir::chlo::ComparisonDirectionAttr | Operasi perbandingan yang akan dilakukan. |
compare_type | ::mlir::chlo::ComparisonTypeAttr | Jenis perbandingan yang akan digunakan. |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor nilai bool |
chlo.broadcast_complex (chlo::BroadcastComplexOp)
Operator kompleks (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_complex` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Melakukan konversi per elemen dari pasangan nilai riil dan imajiner ke nilai kompleks.
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor nilai float 4/6/8/16/32/64-bit |
rhs |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor jenis kompleks dengan nilai elemen float 32/64-bit |
chlo.broadcast_divide (chlo::BroadcastDivOp)
Operator pembagian (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_divide` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs / rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_maximum (chlo::BroadcastMaxOp)
Operator maksimum (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_maximum` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan max(lhs, rhs) per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, Commutative, HLO_BroadcastingElementwise, HLO_CompatibleOperandsAndResultElementType, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_minimum (chlo::BroadcastMinOp)
Operator minimum (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_minimum` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan min(lhs, rhs) per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, Commutative, HLO_BroadcastingElementwise, HLO_CompatibleOperandsAndResultElementType, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_multiply (chlo::BroadcastMulOp)
Operator perkalian (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_multiply` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs * rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, Commutative, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_next_after (chlo::BroadcastNextAfterOp)
Operator Std::nextafter (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_next_after` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan nilai lhs berikutnya yang dapat direpresentasikan dalam arah rhs, per elemen. Fungsi ini juga dapat menampilkan angka subnormal.
Setara dengan fungsi std::nextafter C++.
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_or (chlo::BroadcastOrOp)
Operator OR logis (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_or` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan logical_or(lhs, rhs) per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, Commutative, HLO_BroadcastingElementwise, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor nilai bilangan bulat bool atau 2/4/8/16/32/64-bit |
rhs |
tensor nilai bilangan bulat bool atau 2/4/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_polygamma (chlo::BroadcastPolygammaOp)
Fungsi poligamma (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_polygamma` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan Polygamma(operand, operand) per elemen.
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_power (chlo::BroadcastPowOp)
Operator daya (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_power` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs ^ rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_remainder (chlo::BroadcastRemOp)
Operator sisa (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_remainder` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs % rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_select (chlo::BroadcastSelectOp)
Operator seleksi (dengan penyiaran gaya numpy opsional)
Sintaksis:
operation ::= `chlo.broadcast_select` $pred `,` $on_true `,` $on_false attr-dict `:`
`(` type($pred) `,` type($on_true) `,` type($on_false) `)` `->` type(results)
Membuat array output dari elemen dua array input, berdasarkan nilai array predikat.
Lihat https://www.tensorflow.org/xla/operation_semantics#select
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
pred |
tensor berperingkat nilai bool |
on_true |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
on_false |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_shift_left (chlo::BroadcastShiftLeftOp)
Operator geser ke kiri (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_shift_left` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs << rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_shift_right_arithmetic (chlo::BroadcastShiftRightArithmeticOp)
Operator aritmatika geser kanan (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_shift_right_arithmetic` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs >> rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_shift_right_logical (chlo::BroadcastShiftRightLogicalOp)
Operator logika geser kanan (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_shift_right_logical` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs >> rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_subtract (chlo::BroadcastSubOp)
Operator pengurangan (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_subtract` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan lhs - rhs per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_xor (chlo::BroadcastXorOp)
Operator xor logis (dengan penyiaran opsional)
Sintaksis:
operation ::= `chlo.broadcast_xor` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan logical_xor(lhs, rhs) per elemen.
Lihat https://www.tensorflow.org/xla/operation_semantics#element-wise_binary_arithmetic_operations
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, Commutative, HLO_BroadcastingElementwise, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor nilai bilangan bulat bool atau 2/4/8/16/32/64-bit |
rhs |
tensor nilai bilangan bulat bool atau 2/4/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.broadcast_zeta (chlo::BroadcastZetaOp)
Fungsi zeta Hurwitz
Sintaksis:
operation ::= `chlo.broadcast_zeta` $lhs `,` $rhs attr-dict `:`
`(` type($lhs) `,` type($rhs) `)` `->` type(results)
Menampilkan Zeta(operand, operand) per elemen.
\[ \(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\) \]
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultElementType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
broadcast_dimensions | ::mlir::DenseI64ArrayAttr | Atribut array padat i64 |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor nilai float 4/6/8/16/32/64-bit |
rhs |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor nilai float 4/6/8/16/32/64-bit |
chlo.conj (chlo::ConjOp)
Operator konj
Sintaksis:
operation ::= `chlo.conj` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Conj(operand) per elemen.
\[ \conj(x) = (\real(x), \neg(\imag(x))) \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.constant (chlo::ConstantOp)
Operator konstanta
Sintaksis:
operation ::= `chlo.constant` attr-dict $value
Mewakili nilai konstanta.
Ciri: AlwaysSpeculatableImplTrait, ConstantLike
Antarmuka: ConditionallySpeculatable, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
value | ::mlir::ElementsAttr | atribut vektor/tensor konstan |
Hasil:
| Hasil | Deskripsi |
|---|---|
output |
tensor berbentuk statis dengan jenis float atau bool 4/6/8/16/32/64-bit atau bilangan bulat atau kompleks 2/4/8/16/32/64-bit dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per tensor |
chlo.constant_like (chlo::ConstantLikeOp)
Operator mirip konstanta
Menampilkan konstanta splat dengan bentuk yang sama seperti operand.
Ciri: AlwaysSpeculatableImplTrait, CHLO_Broadcasting, HLO_BroadcastingElementwise, InferTensorType, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
value | ::mlir::TypedAttr | Instance TypedAttr |
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
| «tanpa nama» | tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.cosh (chlo::CoshOp)
Operator Cosh
Sintaksis:
operation ::= `chlo.cosh` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Cosh(operand) per elemen.
\[ \cosh(x) = (e^x + e^-x) / 2 \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.digamma (chlo::DigammaOp)
Fungsi digamma
Sintaksis:
operation ::= `chlo.digamma` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Digamma(operand) per elemen.
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
chlo.erf (chlo::ErfOp)
Operator erfc
Sintaksis:
operation ::= `chlo.erf` $operand attr-dict `:` type($operand) `->` type($result)
Menghitung fungsi error Gauss dari x per elemen.
erf(x) = erf_impl(x) if |x| < 1 = 1 - erfc_impl(x) otherwise
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
chlo.erf_inv (chlo::ErfInvOp)
Inverse Erf
Sintaksis:
operation ::= `chlo.erf_inv` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan ErfInv(operand) per elemen.
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
chlo.erfc (chlo::ErfcOp)
Operator erfc
Sintaksis:
operation ::= `chlo.erfc` $operand attr-dict `:` type($operand) `->` type($result)
Menghitung perkiraan pelengkap fungsi error (1 - erf(x)).
erfc(x) = erfc_impl(x) if |x| > 1 = 1 - erf_impl(x) otherwise
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
chlo.is_inf (chlo::IsInfOp)
IsInf predicate
Sintaksis:
operation ::= `chlo.is_inf` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan apakah nilai adalah +/-inf berdasarkan elemen.
Ciri: AlwaysSpeculatableImplTrait, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai bool |
chlo.is_neg_inf (chlo::IsNegInfOp)
IsNegInf predicate
Sintaksis:
operation ::= `chlo.is_neg_inf` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan apakah nilai adalah -inf berdasarkan elemen.
Ciri: AlwaysSpeculatableImplTrait, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai bool |
chlo.is_pos_inf (chlo::IsPosInfOp)
Predikat IsPosInf
Sintaksis:
operation ::= `chlo.is_pos_inf` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan apakah nilai adalah +inf berdasarkan elemen.
Ciri: AlwaysSpeculatableImplTrait, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai bool |
chlo.lgamma (chlo::LgammaOp)
Fungsi Lgamma
Sintaksis:
operation ::= `chlo.lgamma` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Lgamma(operand) per elemen.
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
chlo.next_after (chlo::NextAfterOp)
Operator Std::nextafter
Sintaksis:
operation ::= `chlo.next_after` $x `,` $y attr-dict `:` type($x) `,` type($y) `->` type(results)
Menampilkan nilai x berikutnya yang dapat direpresentasikan dalam arah y, per elemen. Fungsi ini juga dapat menampilkan angka subnormal.
Setara dengan fungsi std::nextafter C++.
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
x |
tensor nilai float 4/6/8/16/32/64-bit |
y |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
chlo.polygamma (chlo::PolygammaOp)
Fungsi poligamma
Sintaksis:
operation ::= `chlo.polygamma` $n `,` $x attr-dict `:` type($n) `,` type($x) `->` type(results)
Menampilkan Polygamma(operand, operand) per elemen.
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
n |
tensor nilai float 4/6/8/16/32/64-bit |
x |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
chlo.ragged_dot (chlo::RaggedDotOp)
Menghitung matmul di satu dimensi tidak beraturan
Operasi ini menggunakan tiga argumen tensor---lhs, rhs, dan group_sizes---dan atribut "ragged_dot_dimension_numbers". Seperti dot_general, lhs dan rhs mengizinkan dimensi batch dan kontraksi arbitrer. Selain itu, lhs harus memiliki satu dimensi tidak beraturan, dan rhs dapat memiliki paling banyak satu dimensi grup. Operasi ini memiliki tiga mode, bergantung pada jenis dimensi tidak beraturan lhs.
Dalam mode 1, tanda tangan bentuknya adalah [b,m,k], [g,b,k,n], [b,g] -> [b,m,n].
Di sini, dimensi tidak rata adalah dimensi yang tidak menyusut di sebelah kiri (m). Dimensi b dan k masing-masing merepresentasikan dimensi batch dan penyusutan. RHS harus memiliki dimensi grup (g).
Dalam mode 2, tanda tangan bentuknya adalah [b,m,k], [b,k,n], [b,g] -> [g,b,m,n].
Di sini, dimensi tidak beraturan adalah dimensi yang menyusut lhs/rhs (k).
Dalam mode 3, tanda tangan bentuknya adalah [b,m,k], [b,k,n], [g] -> [b,m,n]. Di sini,
dimensi tidak beraturan adalah dimensi batch lhs/rhs (b).
Ciri-ciri: AlwaysSpeculatableImplTrait
Antarmuka: ConditionallySpeculatable, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
ragged_dot_dimension_numbers | ::mlir::chlo::RaggedDotDimensionNumbersAttr | Atribut yang memodelkan informasi dimensi untuk titik tidak rata. |
precision_config | ::mlir::ArrayAttr | Atribut Konfigurasi Presisi |
Operand:
| Operand | Deskripsi |
|---|---|
lhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
rhs |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
group_sizes |
tensor berperingkat nilai bilangan bulat 2/4/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.scan (chlo::ScanOp)
Operasi pemindaian
Menerapkan fungsi reduksi body ke inputs dan inits di sepanjang
dimension dan menghasilkan results (yang terdiri dari outputs dan carries).
Jika is_reverse bernilai benar, pemindaian dilakukan dalam urutan terbalik.
is_associative menunjukkan apakah fungsi pengurangan bersifat asosiatif.
Lihat: https://www.tensorflow.org/xla/operation_semantics#scan
Saat ini, ScanOp tidak memiliki dekomposisi ke StableHLO.
Ciri: AttrSizedOperandSegments, AttrSizedResultSegments, InferTensorType, IsolatedFromAbove, RecursiveMemoryEffects
Antarmuka: InferShapedTypeOpInterface, InferTypeOpInterface, OpAsmOpInterface
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
dimension | ::mlir::IntegerAttr | Atribut bilangan bulat 64-bit tanpa tanda yang nilainya non-negatif |
is_reverse | ::mlir::BoolAttr | Atribut bool |
is_associative | ::mlir::BoolAttr | Atribut bool |
Operand:
| Operand | Deskripsi |
|---|---|
inputs |
variadik tensor float 4/6/8/16/32/64-bit atau bool atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
inits |
variadik tensor float 4/6/8/16/32/64-bit atau bool atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
outputs |
variadik tensor float 4/6/8/16/32/64-bit atau bool atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
carries |
variadik tensor float 4/6/8/16/32/64-bit atau bool atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.sinh (chlo::SinhOp)
Operasi sinh
Sintaksis:
operation ::= `chlo.sinh` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Sinh(operand) per elemen.
\[ \sinh(x) = (e^x - e^-x) / 2 if |x| < 1 = e^(x + log(1/2)) - e^(-x + log(1/2)) otherwise. \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.square (chlo::SquareOp)
Operasi persegi
Sintaksis:
operation ::= `chlo.square` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Square(operand) per elemen.
\[ \square(x) = complex((x.real - x.imag) * (x.real + x.imag), x.real * x.imag * 2) if x is a complex number = x * x otherwise \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.tan (chlo::TanOp)
Operasi tan
Sintaksis:
operation ::= `chlo.tan` $operand attr-dict `:` type($operand) `->` type($result)
Menampilkan Tan(operand) per elemen.
\[ \tan(x) = \sin(x) / \cos(x) \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType, Elementwise, SameOperandsAndResultShape
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor jenis float atau kompleks 4/6/8/16/32/64-bit dengan nilai elemen float 32/64-bit |
chlo.top_k (chlo::TopKOp)
Menemukan nilai dan indeks k elemen terbesar untuk dimensi terakhir
Sintaksis:
operation ::= `chlo.top_k` `(`$operand `,` `k` `=` $k`)` attr-dict `:`
type($operand) `->` `(`type($values)`,` type($indices)`)`
Jika input adalah vektor (peringkat 1), menemukan k entri terbesar dalam vektor dan menghasilkan nilai serta indeksnya sebagai vektor. Jadi, values[j] adalah
entri terbesar ke-j dalam input, dan indeksnya adalah indices[j].
Untuk matriks (atau input peringkat yang lebih tinggi), menghitung k entri teratas di setiap baris (atau vektor di sepanjang dimensi terakhir). Jadi,
values.shape = indices.shape = input.shape[:-1] + [k]
Jika dua elemen sama, elemen dengan indeks yang lebih rendah akan muncul terlebih dahulu.
Ciri: AlwaysSpeculatableImplTrait, InferTensorType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Atribut:
| Atribut | Jenis MLIR | Deskripsi |
|---|---|---|
k | ::mlir::IntegerAttr | Atribut bilangan bulat 64-bit tanpa tanda |
Operand:
| Operand | Deskripsi |
|---|---|
operand |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
Hasil:
| Hasil | Deskripsi |
|---|---|
values |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
indices |
tensor float atau bool 4/6/8/16/32/64-bit atau bilangan bulat 2/4/8/16/32/64-bit atau jenis kompleks dengan elemen float 32/64-bit atau nilai terkuantisasi bilangan bulat per-tensor atau nilai terkuantisasi bilangan bulat per-sumbu |
chlo.zeta (chlo::ZetaOp)
Fungsi zeta Hurwitz
Sintaksis:
operation ::= `chlo.zeta` $x `,` $q attr-dict `:` type($x) `,` type($q) `->` type(results)
Menampilkan Zeta(operand, operand) per elemen.
\[ \(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\) \]
Ciri: AlwaysSpeculatableImplTrait, CompatibleOperandsAndResultType
Antarmuka: ConditionallySpeculatable, InferShapedTypeOpInterface, InferTypeOpInterface, NoMemoryEffect (MemoryEffectOpInterface)
Efek: MemoryEffects::Effect{}
Operand:
| Operand | Deskripsi |
|---|---|
x |
tensor nilai float 4/6/8/16/32/64-bit |
q |
tensor nilai float 4/6/8/16/32/64-bit |
Hasil:
| Hasil | Deskripsi |
|---|---|
result |
tensor nilai float 4/6/8/16/32/64-bit |
Atribut
ComparisonDirectionAttr
Operasi perbandingan yang akan dilakukan.
Sintaksis:
#chlo.comparison_direction<
::mlir::chlo::ComparisonDirection # value
>
Parameter:
| Parameter | Jenis C++ | Deskripsi |
|---|---|---|
| nilai | ::mlir::chlo::ComparisonDirection |
enum jenis ComparisonDirection |
ComparisonTypeAttr
Jenis perbandingan yang akan digunakan.
Sintaksis:
#chlo.comparison_type<
::mlir::chlo::ComparisonType # value
>
Parameter:
| Parameter | Jenis C++ | Deskripsi |
|---|---|---|
| nilai | ::mlir::chlo::ComparisonType |
enum jenis ComparisonType |
PrecisionAttr
Presisi XLA untuk operand. Memiliki arti khusus backend.
Sintaksis:
#chlo.precision<
::mlir::chlo::Precision # value
>
Parameter:
| Parameter | Jenis C++ | Deskripsi |
|---|---|---|
| nilai | ::mlir::chlo::Precision |
enum jenis Presisi |
RaggedDotDimensionNumbersAttr
Atribut yang memodelkan informasi dimensi untuk titik tidak rata.
Parameter:
| Parameter | Jenis C++ | Deskripsi |
|---|---|---|
| lhsBatchingDimensions | ::llvm::ArrayRef<int64_t> |
Dimensi |
| rhsBatchingDimensions | ::llvm::ArrayRef<int64_t> |
Dimensi |
| lhsContractingDimensions | ::llvm::ArrayRef<int64_t> |
Dimensi |
| rhsContractingDimensions | ::llvm::ArrayRef<int64_t> |
Dimensi |
| lhsRaggedDimensions | ::llvm::ArrayRef<int64_t> |
Dimensi |
| rhsGroupDimensions | ::llvm::ArrayRef<int64_t> |
Dimensi |
Enum
ComparisonDirection
Operasi perbandingan yang akan dilakukan.
Casing:
| Simbol | Nilai | String |
|---|---|---|
| EQ | 0 |
EQ |
| TL | 1 |
TL |
| GE | 2 |
GE |
| GT | 3 |
GT |
| LE | 4 |
LE |
| LT | 5 |
LT |
ComparisonType
Jenis perbandingan yang akan digunakan.
Casing:
| Simbol | Nilai | String |
|---|---|---|
| NOTYPE | 0 |
NOTYPE |
| FLOAT | 1 |
FLOAT |
| TOTALORDER | 2 |
TOTALORDER |
| DITANDATANGANI | 3 |
DITANDATANGANI |
| UNSIGNED | 4 |
UNSIGNED |
Presisi
Presisi XLA untuk operand. Memiliki arti khusus backend.
Casing:
| Simbol | Nilai | String |
|---|---|---|
| DEFAULT | 0 |
DEFAULT |
| TINGGI | 1 |
TINGGI |
| TERTINGGI | 2 |
TERTINGGI |