Home
last modified time | relevance | path

Searched refs:onp_fn (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/tests/st/numpy_native/
Dutils.py60 def run_non_kw_test(mnp_fn, onp_fn, test_case): argument
64 match_res(mnp_fn, onp_fn, *arrs)
68 match_res(mnp_fn, onp_fn, *arrs)
72 match_res(mnp_fn, onp_fn, *arrs)
76 match_res(mnp_fn, onp_fn, *arrs)
92 def match_res(mnp_fn, onp_fn, *arrs, **kwargs): argument
98 onp_res = onp_fn(*arrs, **kwargs)
122 def run_binop_test(mnp_fn, onp_fn, test_case, error=0): argument
124 match_res(mnp_fn, onp_fn, arr, arr, error=error)
127 match_res(mnp_fn, onp_fn, arr, scalar, error=error)
[all …]
Dtest_array_creations.py450 def run_x_like(mnp_fn, onp_fn): argument
454 expected = onp_fn(onp_proto)
459 expected = onp_fn(onp_proto, shape=shape)
464 expected = onp_fn(onp_proto, dtype=onp_dtype)
469 expected = onp_fn(onp_proto, dtype=onp_dtype, shape=shape)