Home
last modified time | relevance | path

Searched refs:mnp_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
97 mnp_res = mnp_fn(*mnp_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
453 actual = mnp_fn(mnp_proto).asnumpy()
458 actual = mnp_fn(mnp_proto, shape=shape).asnumpy()
463 actual = mnp_fn(mnp_proto, dtype=mnp_dtype).asnumpy()
467 actual = mnp_fn(mnp_proto, dtype=mnp_dtype,