Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ test_acosh
Function
test_acosh
imperative/python/test/unit/functional/test_elemwise.py:159–163 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
157
158
159
def
test_acosh():
160
x = np.arange(0, 10000).astype(
"float32"
) / 100 + 1
161
y_np = np.arccosh(x)
162
y_mge = F.acosh(tensor(x)).numpy()
163
np.testing.assert_almost_equal(y_np, y_mge, decimal=6)
164
165
166
def
test_atanh():
Callers
nothing calls this directly
Calls
3
astype
Method · 0.45
numpy
Method · 0.45
acosh
Method · 0.45
Tested by
no test coverage detected