Home
last modified time | relevance | path

Searched refs:exception_msg (Results 1 – 3 of 3) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_sampler.py190 def test_config(indices, num_samples=None, exception_msg=None): argument
201 if exception_msg is None:
215 assert exception_msg in str(error_info.value)
234 test_config([20], exception_msg="Sample ID (20) is out of bound, expected range [0, 9]")
235 test_config([10], exception_msg="Sample ID (10) is out of bound, expected range [0, 9]")
236 …test_config([0, 9, 0, 500], exception_msg="Sample ID (500) is out of bound, expected range [0, 9]")
237 … test_config([0, 9, -6, 2], exception_msg="Sample ID (-6) is out of bound, expected range [0, 9]")
240exception_msg="num_samples exceeds the boundary between 0 and 9223372036854775807(INT64_MAX)")
242exception_msg="SubsetSampler: Type of indices element must be int, but got list[0]: [1],"
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/mpi/
Dmpi_adapter.cc236 std::ostringstream exception_msg; in ReduceScatterOverwriteInput() local
237 exception_msg << "output buffer size " << output_size << " < input size " << data_size; in ReduceScatterOverwriteInput()
238 RAISE_EXCEPTION(exception_msg.str()); in ReduceScatterOverwriteInput()
/third_party/boost/libs/program_options/test/
Dexception_txt_test.cpp50 …ctor<const char*>& argv, options_description& desc, int style, string exception_msg, istream& is =… in test_each_exception_message() argument
52 if (exception_msg.length() == 0) in test_each_exception_message()
68 CHECK_EQUAL(test_description, e.what(), exception_msg); in test_each_exception_message()
83 "\"\n Expected text=\"" + exception_msg + "\"\n"); in test_each_exception_message()