/third_party/mindspore/tests/ut/python/dataset/ |
D | test_time_stretch.py | 37 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)
|
D | test_amplitude_to_db.py | 37 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)
|
D | test_frequency_masking.py | 37 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)
|
D | test_time_masking.py | 37 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)
|
D | test_vol.py | 27 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)
|
D | test_contrast.py | 24 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])
|
D | test_highpass_biquad.py | 27 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])
|
D | test_equalizer_biquad.py | 26 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])
|
D | test_deemph_biquad.py | 23 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])
|
D | test_lowpass_biquad.py | 27 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])
|
D | test_dc_shift.py | 22 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])
|
D | test_allpass_biquad.py | 22 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])
|
D | test_angle.py | 23 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])
|
D | test_bandreject_biquad.py | 22 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])
|
D | test_biquad.py | 23 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])
|
D | test_bass_biquad.py | 22 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])
|
D | test_lfilter.py | 23 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])
|
D | test_bandpass_biquad.py | 22 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])
|
D | test_band_biquad.py | 22 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/ |
D | utils.py | 26 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/ |
D | test_auto_monad_expression.py | 40 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/ |
D | test_pynative_mixed_precision_cells.py | 70 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)
|
D | test_pynative_layernorm_input_and_argmaxwithvalue.py | 75 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/ |
D | optimizer_parallel.py | 44 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)
|
D | multifieldembeddinglookup_parallel.py | 40 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)
|