[Bug] TVMError: unknown intrinsic Op(tir.atan) during relax.build with custom atan TIR function #17487
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
The below code defines a custom TIR function that computes the atan of each element in a buffer of shape (20,) and then uses it within a relax function. When trying to build the module using relax.build targeting llvm, it raises an error: TVMError: unknown intrinsic Op(tir.atan).
Expected behavior
The tir.atan operation should be recognized and compiled correctly without throwing this error, as it is a common mathematical operation.
Actual behavior
Steps to reproduce
It is unclear if this is due to a missing intrinsic support for atan in TIR or if there is an issue with registering this intrinsic in the target. Any guidance or fixes to resolve this issue would be appreciated.
The text was updated successfully, but these errors were encountered: