API Description
Table 1 describes the C++ APIs provided by KTFOP.
Operator |
Function |
|---|---|
Select |
Selects elements from two input tensors based on the true or false judgment of the conditional tensor, and then forms a new tensor. |
Less |
Compares two input tensors and returns a Boolean tensor element by element, indicating whether the first input tensor is less than the second one. |
Greater |
Compares two input tensors and returns a Boolean tensor element by element, indicating whether the first input tensor is greater than the second one. |
FloorMod |
Performs element-wise modulo operations of two input tensors. |
MatMul |
Performs multiplication operations on two matrices. |
LookupTableFind |
Searches for the elements of the input tensor in the lookup table and returns the corresponding values. |
SetExternalLogFunc API |
Allows transferring the log API to print the information of parameter verification failure and function registration. |