def mnp_add_dtype(x1, x2, out, where): a = mnp.add(x1, x2, dtype=mnp.float16) b = mnp.add(x1, x2, out=out, dtype=mnp.float16) c = mnp.add(x1, x2, where=where, dtype=mnp.float16) d = mnp.add(x1, x2, out=out, where=where, dtype=mnp.float16) return a, b, c, d
def test_exception_add(): with pytest.raises(ValueError): mnp.add(mnp.asarray(test_case.arrs[1]), mnp.asarray(test_case.arrs[2]))
def mnp_add_kwargs(x, y, where=None, out=None): return mnp.add(x, y, where=where, out=out)
def mnp_add(x1, x2): return mnp.add(x1, x2)