Skip to content

Conversation

@jikechao
Copy link
Member

@jikechao jikechao commented May 10, 2025

Fix #17944.

The PR is designed to support the operators asin/acos/atan;
Since the Taylor implementation algorithm is not perfect, we use 1e-3 tolerance for asin/acos/atan tests to account for the precision loss from the Taylor approximation.

Here, I also added a TODO label to improve the precision of algorithms in the future.

Meanwhile, do you have any recommendations for improving the precision of the asin/acos/atan operators?

cc @Hzfengsy @tqchen @Lunderberg @mshr-h

@Hzfengsy Hzfengsy merged commit 46f41ce into apache:main May 12, 2025
14 of 15 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
* register operator asin and acos

* Update intrin_rule_llvm.cc

* Update intrin_rule_llvm.cc

* fix atan

* Update intrin_rule_llvm.cc

* Update intrin_rule_llvm.cc

* Update test_tir_intrin.py

* Update test_tir_intrin.py

* Update test_tir_intrin.py

* Update test_frontend_onnx.py

* Update test_frontend_onnx.py

* Update test_frontend_onnx.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] TVMError: unknown intrinsic Op(tir.acos)

2 participants