MCPcopy Create free account
hub / github.com/numpy/numpy / test_mean_float16

Method test_mean_float16

numpy/core/tests/test_multiarray.py:6232–6235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6230 assert_almost_equal(res, tgt)
6231
6232 def test_mean_float16(self):
6233 # This fail if the sum inside mean is done in float16 instead
6234 # of float32.
6235 assert_(_mean(np.ones(100000, dtype='float16')) == 1)
6236
6237 def test_mean_axis_error(self):
6238 # 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