MCPcopy Index your code
hub / github.com/numpy/numpy / test_mean_float16

Method test_mean_float16

numpy/_core/tests/test_multiarray.py:7197–7200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7195 assert_almost_equal(res, tgt)
7196
7197 def test_mean_float16(self):
7198 # This fail if the sum inside mean is done in float16 instead
7199 # of float32.
7200 assert_(_mean(np.ones(100000, dtype='float16')) == 1)
7201
7202 def test_mean_axis_error(self):
7203 # Ensure that AxisError is raised instead of IndexError when axis is

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
_meanFunction · 0.70

Tested by

no test coverage detected