(x)
| 1692 | @pytest.mark.skip(reason="pytest aborted") |
| 1693 | def test_softmax(): |
| 1694 | def np_softmax(x): |
| 1695 | return np.exp(x) / np.sum(np.exp(x), axis=1, keepdims=True) |
| 1696 | |
| 1697 | data = (np.random.random(size=(1, 16, 224, 224)).astype(np.float32) - 0.5) * 100 |
| 1698 | desired = np_softmax(data[:, :3, 0, 0]) |
no test coverage detected