tvm_tirx.ir.prim#
Primitive expressions and construction helpers shared by TVM IR dialects.
Classes#
|
Compare whether |
|
Compare whether |
|
Compare whether |
|
Compare whether |
|
Compare whether |
|
Compare whether |
|
Add two primitive values, elementwise for vectors. |
|
Compute the conjunction of two boolean values. |
|
Python base class for binary arithmetic and bitwise expressions. |
|
Compute the bitwise intersection of |
|
Invert every bit of the input value. |
|
Compute the bitwise union of |
|
Compute the bitwise exclusive-or of |
|
Convert a primitive value to another dtype while preserving its lane count. |
|
Python base class for comparisons of primitive expressions. |
|
Divide |
|
Divide |
|
Compute |
|
Bind |
|
Python base class for boolean conjunction and disjunction expressions. |
|
Shift the bits of |
|
Choose the larger of two primitive values, elementwise for vectors. |
|
Choose the smaller of two primitive values, elementwise for vectors. |
|
Compute the remainder of integer division truncated toward zero. |
|
Multiply two primitive values, elementwise for vectors. |
|
Negate a boolean value, elementwise for vectors. |
|
Compute the disjunction of two boolean values. |
|
Shift the bits of |
|
Select between two values according to a boolean condition. |
|
Subtract |
|
Repeat a scalar value across all lanes of a vector. |
|
Construct an index vector whose lane |
|
Select output lanes from the concatenation of the input vectors. |
Alias |
Canonical API |
|---|---|
|
Functions#
|
Get absolute value of the input element-wise. |
|
Take acos of input x. |
|
Take acos of input x. |
|
Create a new expression of the intersection of all conditions in the |
|
Create a new experssion of the union of all conditions in the arguments |
|
Take asin of input x. |
|
Take asinh of input x. |
|
Provide a true statement that can be used for simplifications |
|
Take atan of input x. |
|
Take arctan2(x1, x2). |
|
Take atanh of input x. |
|
Take bitwise and of two values |
|
Take bitwise not of input value |
|
Take bitwise or of two values |
|
Take bitwise xor of two values |
|
Take ceil of float input x. |
|
Generic ceildiv operator. |
|
Count leading zero bits of an integer x. |
|
Convert a scalar or sequence to primitive expressions. |
|
Change the sign of x1 to that of x2, element-wise. |
|
Take cos of input x. |
|
Take cosh of input x. |
|
Compute a / b as in C/C++ semantics. |
|
Take gauss error function of the input x. |
|
Take exponential of input x. |
|
Calculate 2**x |
|
Calculate 10**x |
|
Take floor of float input x. |
|
Compute the floordiv of two expressions. |
|
Compute the floormod of two expressions. |
|
Take fused multiply-add of input x, y, z. |
|
Return the remainder of x divided by y with the same sign as x. |
|
Equivalent to sqrt(x1**2 + x2**2), element-wise. |
|
Conditional selection expression. |
|
Compute floor(a / b) where a and b are non-negative. |
|
Compute the remainder of indexdiv. |
|
infinity value of ty |
|
Check if input value is finite. |
|
Check if input value is infinite. |
|
Check if input value is Nan. |
|
Returns x1 * (2 ** x2). |
|
Mark condition as likely. |
|
Take log of input x. |
|
Take log(x + 1) with respect to input x. |
|
Take log2 of input x. |
|
Take log10 of input x. |
|
Elementwise maximum of two primitive expressions. |
|
maximum value of ty |
|
Elementwise minimum of two primitive expressions. |
|
minimum value of ty |
|
Round elements of the array to the nearest integer. |
|
Return the next floating-point value after x1 towards x2. |
|
Count the number of set bits in input x. |
|
x power y |
|
x power y |
|
Round elements of the array to the nearest integer. |
|
Take reciprocal of square root of input x. |
|
Return the result of x left shifted by y bits. |
|
Return the result of x right shifted by y bits. |
|
Quick function to get sigmoid |
|
Take sin of input x. |
|
Take sinh of input x. |
|
Take square root of input x. |
|
Take tan of input x. |
|
Take hyperbolic tanh of input x. |
|
Get truncated value of the input. |
|
Compute the truncdiv of two expressions. |
|
Compute the truncmod of two expressions. |
|
Get the target's vscale value. |
|
Deeply compare two nested expressions. |
Alias |
Canonical API |
|---|---|
|