Home
last modified time | relevance | path

Searched refs:data_me (Results 1 – 25 of 29) sorted by relevance

12

/third_party/mindspore/tests/ut/python/dataset/
Dtest_time_stretch.py37 def count_unequal_element(data_expected, data_me, rtol, atol): argument
38 assert data_expected.shape == data_me.shape
40 error = np.abs(data_expected - data_me)
44 data_expected[greater], data_me[greater], error[greater])
47 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
49 assert np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan)
50 elif not np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan):
51 count_unequal_element(data_expected, data_me, rtol, atol)
Dtest_amplitude_to_db.py37 def count_unequal_element(data_expected, data_me, rtol, atol): argument
39 assert data_expected.shape == data_me.shape
41 error = np.abs(data_expected - data_me)
45 data_expected[greater], data_me[greater], error[greater])
48 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
51 assert np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan)
52 elif not np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan):
53 count_unequal_element(data_expected, data_me, rtol, atol)
Dtest_frequency_masking.py37 def count_unequal_element(data_expected, data_me, rtol, atol): argument
39 assert data_expected.shape == data_me.shape
41 error = np.abs(data_expected - data_me)
45 data_expected[greater], data_me[greater], error[greater])
48 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
51 assert np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan)
52 elif not np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan):
53 count_unequal_element(data_expected, data_me, rtol, atol)
Dtest_time_masking.py37 def count_unequal_element(data_expected, data_me, rtol, atol): argument
39 assert data_expected.shape == data_me.shape
41 error = np.abs(data_expected - data_me)
45 data_expected[greater], data_me[greater], error[greater])
48 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
51 assert np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan)
52 elif not np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan):
53 count_unequal_element(data_expected, data_me, rtol, atol)
Dtest_vol.py27 def count_unequal_element(data_expected, data_me, rtol, atol): argument
29 assert data_expected.shape == data_me.shape
31 error = np.abs(data_expected - data_me)
36 format(data_expected[greater], data_me[greater], error[greater])
39 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
42 assert np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan)
43 elif not np.allclose(data_me, data_expected, rtol, atol, equal_nan=equal_nan):
44 count_unequal_element(data_expected, data_me, rtol, atol)
Dtest_contrast.py24 def count_unequal_element(data_expected, data_me, rtol, atol): argument
25 assert data_expected.shape == data_me.shape
27 error = np.abs(data_expected - data_me)
31 data_expected[greater], data_me[greater], error[greater])
Dtest_highpass_biquad.py27 def count_unequal_element(data_expected, data_me, rtol, atol): argument
28 assert data_expected.shape == data_me.shape
30 error = np.abs(data_expected - data_me)
35 format(data_expected[greater], data_me[greater], error[greater])
Dtest_equalizer_biquad.py26 def count_unequal_element(data_expected, data_me, rtol, atol): argument
27 assert data_expected.shape == data_me.shape
29 error = np.abs(data_expected - data_me)
33 data_expected[greater], data_me[greater], error[greater])
Dtest_deemph_biquad.py23 def count_unequal_element(data_expected, data_me, rtol, atol): argument
24 assert data_expected.shape == data_me.shape
26 error = np.abs(data_expected - data_me)
31 format(data_expected[greater], data_me[greater], error[greater])
Dtest_lowpass_biquad.py27 def count_unequal_element(data_expected, data_me, rtol, atol): argument
28 assert data_expected.shape == data_me.shape
30 error = np.abs(data_expected - data_me)
34 data_expected[greater], data_me[greater], error[greater])
Dtest_dc_shift.py22 def count_unequal_element(data_expected, data_me, rtol, atol): argument
23 assert data_expected.shape == data_me.shape
25 error = np.abs(data_expected - data_me)
29 data_expected[greater], data_me[greater], error[greater])
Dtest_allpass_biquad.py22 def count_unequal_element(data_expected, data_me, rtol, atol): argument
23 assert data_expected.shape == data_me.shape
25 error = np.abs(data_expected - data_me)
29 data_expected[greater], data_me[greater], error[greater])
Dtest_angle.py23 def count_unequal_element(data_expected, data_me, rtol, atol): argument
24 assert data_expected.shape == data_me.shape
26 error = np.abs(data_expected - data_me)
30 data_expected[greater], data_me[greater], error[greater])
Dtest_bandreject_biquad.py22 def count_unequal_element(data_expected, data_me, rtol, atol): argument
23 assert data_expected.shape == data_me.shape
25 error = np.abs(data_expected - data_me)
29 data_expected[greater], data_me[greater], error[greater])
Dtest_biquad.py23 def count_unequal_element(data_expected, data_me, rtol, atol): argument
24 assert data_expected.shape == data_me.shape
26 error = np.abs(data_expected - data_me)
31 format(data_expected[greater], data_me[greater], error[greater])
Dtest_bass_biquad.py22 def count_unequal_element(data_expected, data_me, rtol, atol): argument
23 assert data_expected.shape == data_me.shape
25 error = np.abs(data_expected - data_me)
29 data_expected[greater], data_me[greater], error[greater])
Dtest_lfilter.py23 def count_unequal_element(data_expected, data_me, rtol, atol): argument
24 assert data_expected.shape == data_me.shape
26 error = np.abs(data_expected - data_me)
31 format(data_expected[greater], data_me[greater], error[greater])
Dtest_bandpass_biquad.py22 def count_unequal_element(data_expected, data_me, rtol, atol): argument
23 assert data_expected.shape == data_me.shape
25 error = np.abs(data_expected - data_me)
29 data_expected[greater], data_me[greater], error[greater])
Dtest_band_biquad.py22 def count_unequal_element(data_expected, data_me, rtol, atol): argument
23 assert data_expected.shape == data_me.shape
25 error = np.abs(data_expected - data_me)
29 data_expected[greater], data_me[greater], error[greater])
/third_party/mindspore/tests/st/mix_precision/
Dutils.py26 def _count_unequal_element(data_expected, data_me, rtol, atol): argument
27 assert data_expected.shape == data_me.shape
29 error = np.abs(data_expected - data_me)
30 greater = np.greater(error, atol + np.abs(data_me) * rtol)
34 format(data_expected[greater], data_me[greater], error[greater])
37 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
39 assert np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan)
40 elif not np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan):
41 _count_unequal_element(data_expected, data_me, rtol, atol)
/third_party/mindspore/tests/st/auto_monad/
Dtest_auto_monad_expression.py40 def _count_unequal_element(data_expected, data_me, rtol, atol): argument
41 assert data_expected.shape == data_me.shape
43 error = np.abs(data_expected - data_me)
44 greater = np.greater(error, atol + np.abs(data_me) * rtol)
48 format(data_expected[greater], data_me[greater], error[greater])
51 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
53 assert np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan)
54 elif not np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan):
55 _count_unequal_element(data_expected, data_me, rtol, atol)
/third_party/mindspore/tests/st/pynative/
Dtest_pynative_mixed_precision_cells.py70 def _count_unequal_element(data_expected, data_me, rtol, atol): argument
71 assert data_expected.shape == data_me.shape
73 error = np.abs(data_expected - data_me)
74 greater = np.greater(error, atol + np.abs(data_me)*rtol)
78 format(data_expected[greater], data_me[greater], error[greater])
80 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
82 assert np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan)
83 elif not np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan):
84 _count_unequal_element(data_expected, data_me, rtol, atol)
Dtest_pynative_layernorm_input_and_argmaxwithvalue.py75 def _count_unequal_element(data_expected, data_me, rtol, atol): argument
76 assert data_expected.shape == data_me.shape
78 error = np.abs(data_expected - data_me)
79 greater = np.greater(error, atol + np.abs(data_me)*rtol)
83 format(data_expected[greater], data_me[greater], error[greater])
85 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
87 assert np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan)
88 elif not np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan):
89 _count_unequal_element(data_expected, data_me, rtol, atol)
/third_party/mindspore/tests/st/auto_parallel/
Doptimizer_parallel.py44 def _count_unequal_element(data_expected, data_me, rtol, atol): argument
45 assert data_expected.shape == data_me.shape
47 error = np.abs(data_expected - data_me)
48 greater = np.greater(error, atol + np.abs(data_me) * rtol)
52 format(data_expected[greater], data_me[greater], error[greater])
55 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
57 assert np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan)
58 elif not np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan):
59 _count_unequal_element(data_expected, data_me, rtol, atol)
Dmultifieldembeddinglookup_parallel.py40 def _count_unequal_element(data_expected, data_me, rtol, atol): argument
41 assert data_expected.shape == data_me.shape
43 error = np.abs(data_expected - data_me)
44 greater = np.greater(error, atol + np.abs(data_me) * rtol)
48 format(data_expected[greater], data_me[greater], error[greater])
51 def allclose_nparray(data_expected, data_me, rtol, atol, equal_nan=True): argument
53 assert np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan)
54 elif not np.allclose(data_expected, data_me, rtol, atol, equal_nan=equal_nan):
55 _count_unequal_element(data_expected, data_me, rtol, atol)

12