Home
last modified time | relevance | path

Searched refs:expected_err_re (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/
Ddecode_csv_op_test.py33 def _test(self, args, expected_out=None, expected_err_re=None): argument
34 if expected_err_re is None:
44 with self.assertRaisesOpError(expected_err_re):
207 args, expected_err_re="Field 1 is required but missing in record 2!")
216 args, expected_err_re="Field 1 in record 1 is not a valid int32: 234a")
225 args, expected_err_re="Field 0 in record 1 is not a valid int32: ")
234 args, expected_err_re="Field 0 in record 2 is not a valid float: ")
240 args, expected_err_re="Unquoted fields cannot have quotes/CRLFs inside")
245 self._test(args, expected_err_re="Expect 1 fields but have 2 in record 0")
254 args, expected_err_re="Quoted field has to end with quote followed.*")
[all …]
Dedit_distance_op_test.py46 expected_err_re=None): argument
50 if expected_err_re is None:
55 with self.assertRaisesOpError(expected_err_re):
63 expected_err_re=None): argument
81 expected_err_re=expected_err_re)
93 expected_err_re=expected_err_re)
Dargmax_op_test.py37 expected_err_re=None): argument
40 if expected_err_re is None:
47 with self.assertRaisesOpError(expected_err_re):
55 expected_err_re=None): argument
56 self._testArg(method, x, axis, expected_values, True, expected_err_re)
57 self._testArg(method, x, axis, expected_values, False, expected_err_re)
Dreverse_sequence_op_test.py41 expected_err_re=None): argument
45 if expected_err_re is None:
50 with self.assertRaisesOpError(expected_err_re):
59 expected_err_re=None): argument
61 expected_err_re)
63 False, expected_err_re)
Dcompare_and_bitpack_op_test.py32 expected_err_re=None): argument
34 if expected_err_re is None:
39 with self.assertRaisesOpError(expected_err_re):
Dwhere_op_test.py40 def _testWhere(self, x, truth, expected_err_re=None): argument
44 if expected_err_re is None:
48 with self.assertRaisesOpError(expected_err_re):
99 def _testRandom(self, dtype, expected_err_re=None): argument
105 self._testWhere(x, truth, expected_err_re)
Done_hot_op_test.py34 expected_err_re=None, argument
43 if expected_err_re is None:
48 with self.assertRaisesOpError(expected_err_re):
51 def _testBothOneHot(self, truth, expected_err_re=None, raises=None, **inputs): argument
52 self._testOneHot(truth, True, expected_err_re, raises, **inputs)
53 self._testOneHot(truth, False, expected_err_re, raises, **inputs)
Dctc_decoder_ops_test.py54 expected_err_re=None, argument
68 if expected_err_re is None:
95 with self.assertRaisesOpError(expected_err_re):
Dctc_loss_op_test.py88 expected_err_re=None): argument
101 if expected_err_re is None:
106 with self.assertRaisesOpError(expected_err_re):
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dcsv_dataset_test.py79 expected_err_re=None): argument
80 if expected_err_re is None:
103 expected_err_re=None, argument
111 if expected_err_re is not None:
113 with self.assertRaisesOpError(expected_err_re):
115 self._verify_output_or_err(dataset, expected_output, expected_err_re)
118 self._verify_output_or_err(dataset, expected_output, expected_err_re)
152 expected_err_re='Unquoted fields cannot have quotes inside',
160 expected_err_re=
225 expected_err_re='Expect 2 fields but have 1 in record',
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dreverse_sequence_op_test.py37 expected_err_re=None): argument
44 if expected_err_re is None:
48 with self.assertRaisesOpError(expected_err_re):