()
| 149 | |
| 150 | |
| 151 | def test_asinh(): |
| 152 | np.random.seed(42) |
| 153 | x = np.random.randn(100).astype("float32") |
| 154 | y_np = np.arcsinh(x) |
| 155 | y_mge = F.asinh(tensor(x)).numpy() |
| 156 | np.testing.assert_almost_equal(y_np, y_mge, decimal=5) |
| 157 | |
| 158 | |
| 159 | def test_acosh(): |