MCPcopy 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
159def 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
166def test_atanh():

Callers

nothing calls this directly

Calls 3

astypeMethod · 0.45
numpyMethod · 0.45
acoshMethod · 0.45

Tested by

no test coverage detected