triton.language.extra.cann.libdevice#
Libdevice Ops#
Computes the element-wise absolute value of x. |
|
Computes the element-wise arccosine (inverse cosine) of the input tensor. |
|
Computes the element-wise inverse hyperbolic cosine of the input tensor. |
|
Computes x + y rounded down. |
|
Computes x + y rounded to nearest even. |
|
Computes x + y rounded up. |
|
Computes x + y rounded toward zero. |
|
Computes the element-wise arcsine (inverse sine) of the input tensor. |
|
Computes the element-wise inverse hyperbolic sine of the input tensor. |
|
Computes the element-wise arctangent (inverse tangent) of the input tensor. |
|
Computes the arctangent of arg0/arg1, using signs to determine the quadrant. |
|
Computes the element-wise inverse hyperbolic tangent of the input tensor. |
|
Reverses the bit order of a 32-bit integer. |
|
Selects bytes from two 32-bit integers x and y according to the selector s and returns the combined integer. |
|
Computes the cube root of x. |
|
Rounds x up to the nearest integer. |
|
Counts the number of leading zero bits in a 32-bit integer. |
|
Creates a value with the magnitude of arg0 and the sign of arg1. |
|
Computes the element-wise cosine of x. |
|
Computes the element-wise hyperbolic cosine of the input tensor. |
|
Computes cos(pi * x). |
|
Computes the modified Bessel function of the first kind, order 0. |
|
Computes the modified Bessel function of the first kind of order 1. |
|
Computes x / y rounded down. |
|
Computes x / y rounded to nearest even. |
|
Computes x / y rounded up. |
|
Computes the division with round-toward-zero mode. |
|
Computes the error function of x. |
|
Computes the complementary error function of x. |
|
Computes the inverse complementary error function of x. |
|
Computes the scaled complementary error function of x. |
|
Computes the inverse error function. |
|
Computes e raised to the power x. |
|
Computes 10 raised to the power x. |
|
Computes 2 raised to the power x. |
|
Computes e^x - 1 with better precision for small x. |
|
Fast approximation of the cosine of x. |
|
Computes a fast floating-point division. |
|
Fast approximation of 10 raised to the power x. |
|
Computes a fast exponential (e^x) of the input tensor. |
|
Fast approximation of the base-10 logarithm of x. |
|
Fast approximation of the base-2 logarithm of x. |
|
Fast approximation of the natural logarithm of x. |
|
Fast approximation of x raised to the power y. |
|
Fast approximation of the sine of x. |
|
Fast approximation of the tangent of x. |
|
Computes the positive difference max(x - y, 0). |
|
Finds the index of the first (least significant) bit set to 1, in the range [0, 32]. |
|
Determines whether x is a finite value. |
|
Converts x to int32, rounding down. |
|
Converts x to int32, rounding to nearest even. |
|
Converts x to int32, rounding up. |
|
Converts x to int32, rounding toward zero. |
|
Converts x to int64, rounding down. |
|
Converts x to int64, rounding to nearest even. |
|
Converts x to int64, rounding up. |
|
Converts x to int64, rounding toward zero. |
|
Converts x to uint32, rounding down. |
|
Converts x to uint32, rounding to nearest even. |
|
Converts x to uint32, rounding up. |
|
Converts x to uint32, rounding toward zero. |
|
Converts x to uint64, rounding down. |
|
Converts x to uint64, rounding to nearest even. |
|
Converts x to uint64, rounding up. |
|
Converts x to uint64, rounding toward zero. |
|
Reinterprets the bits of a float32 value as an int32. |
|
Reinterprets the bits of a float32 value as uint32. |
|
Rounds x down to the nearest integer. |
|
Computes x * y + z with a single rounding. |
|
Computes x * y + z with a single rounding, rounded down. |
|
Computes x * y + z with a single rounding, rounded to nearest even. |
|
Computes x * y + z with a single rounding, rounded up. |
|
Computes x * y + z with a single rounding, rounded toward zero. |
|
Computes the floating-point remainder of arg0 / arg1. |
|
Computes the Gamma function using the Lanczos approximation. |
|
Computes the average of x and y. |
|
Computes the Euclidean distance: sqrt(arg0^2 + arg1^2). |
|
Returns the integer binary exponent of the input tensor. |
|
Converts an int32 value to float32. |
|
Converts an int32 value to float32. |
|
Converts an int32 value to float32. |
|
Converts an int32 value to float32. |
|
Reinterprets the bits of an int32 value as float32. |
|
Tests whether each element of the input tensor is infinity. |
|
Tests whether each element of the input tensor is NaN. |
|
Computes the Bessel function of the first kind of order 0. |
|
Computes the Bessel function of the first kind of order 1. |
|
Computes the Bessel function of the first kind of integer order n. |
|
Computes x * 2^exp from a mantissa and an exponent. |
|
Computes the natural logarithm of the absolute value of the Gamma function. |
|
Converts an int64 value to float32. |
|
Converts an int64 value to float32. |
|
Converts an int64 value to float32. |
|
Converts an int64 value to float32. |
|
Rounds x to the nearest int64 value. |
|
Rounds x to the nearest int64 value. |
|
Computes the natural logarithm of x. |
|
Computes the element-wise base-10 logarithm of the input tensor. |
|
Computes the element-wise natural logarithm of (1 + x). |
|
Computes the base-2 logarithm of x. |
|
Computes the unbiased exponent of x, i.e. floor(log2(|x|)). |
|
Computes the low 24-bit multiplication result of x and y. |
|
Computes x * y rounded down. |
|
Computes x * y rounded to nearest even. |
|
Computes x * y rounded up. |
|
Computes x * y rounded toward zero. |
|
Computes the high 32 bits of the product x * y. |
|
Rounds the input tensor to the nearest integer using round-to-nearest-even. |
|
Returns the next representable floating-point value after arg0 toward arg1. |
|
Computes the Euclidean norm of (x, y, z). |
|
Computes the Euclidean norm of (x, y, z, w). |
|
Computes the standard normal cumulative distribution function. |
|
Computes the inverse of the standard normal cumulative distribution function. |
|
Counts the number of bits set to 1 in x, in the range [0, 32]. |
|
Computes arg0 raised to the power of arg1. |
|
Computes the reciprocal cube root of x. |
|
Computes 1 / x rounded down. |
|
Computes 1 / x rounded to nearest even. |
|
Computes 1 / x rounded up. |
|
Computes 1 / x rounded toward zero. |
|
Computes the element-wise reciprocal (1/x) of the input tensor. |
|
Computes the element-wise ReLU activation: max(0, x). |
|
Computes the IEEE remainder of x / y. |
|
Computes the rounded average of x and y. |
|
Computes 1 / sqrt(x^2 + y^2). |
|
Rounds the input tensor to the nearest integer using round-to-nearest-even. |
|
Computes 1 / sqrt(x^2 + y^2 + z^2). |
|
Computes 1 / sqrt(x^2 + y^2 + z^2 + w^2). |
|
Rounds the input tensor to the nearest integer. |
|
Computes the reciprocal square root of x. |
|
Computes the reciprocal square root of x, rounded to nearest even. |
|
Computes |x - y| + z, where x and y are signed integers and z is an unsigned integer. |
|
Clamps x to the range [0, 1]. |
|
Computes x * 2^n. |
|
Returns the sign bit of the input tensor. |
|
Computes the element-wise sine of x. |
|
Computes the element-wise hyperbolic sine of the input tensor. |
|
Computes sin(pi * x). |
|
Computes the square root of x. |
|
Computes the square root of x, rounded down. |
|
Computes the square root of x, rounded to nearest even. |
|
Computes the square root of x, rounded up. |
|
Computes the square root of x, rounded toward zero. |
|
Computes x - y rounded down. |
|
Computes x - y rounded to nearest even. |
|
Computes x - y rounded up. |
|
Computes x - y rounded toward zero. |
|
Computes the element-wise tangent of the input tensor. |
|
Computes the element-wise hyperbolic tangent of the input tensor. |
|
Computes the gamma function of x. |
|
Truncates the input tensor to the nearest integer toward zero. |
|
Converts a uint32 value to float32. |
|
Converts a uint32 value to float32. |
|
Converts a uint32 value to float32. |
|
Converts a uint32 value to float32. |
|
Reinterprets the bits of a uint32 value as float32. |
|
Converts a uint64 value to float32. |
|
Converts a uint64 value to float32. |
|
Converts a uint64 value to float32. |
|
Converts a uint64 value to float32. |
|
Computes the Bessel function of the second kind of order 0. |
|
Computes the Bessel function of the second kind of order 1. |
|
Computes the Bessel function of the second kind of integer order n. |