Home
last modified time | relevance | path

Searched refs:assertRaisesOpError (Results 1 – 25 of 147) sorted by relevance

123456

/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Dlinear_operator_zeros_test.py70 with self.assertRaisesOpError("non-positive definite"):
74 with self.assertRaisesOpError("non-invertible"):
120 with self.assertRaisesOpError("must be a 0-D Tensor"):
129 with self.assertRaisesOpError("must be non-negative"):
134 with self.assertRaisesOpError("must be non-negative"):
143 with self.assertRaisesOpError("must be a 1-D"):
152 with self.assertRaisesOpError("must be non-negative"):
170 with self.assertRaisesOpError("Incompatible.*dimensions"):
Dlinear_operator_full_matrix_test.py83 with self.assertRaisesOpError("Singular matrix"):
96 with self.assertRaisesOpError("Singular matrix"):
103 with self.assertRaisesOpError("not equal to its adjoint"):
182 with self.assertRaisesOpError(""):
190 with self.assertRaisesOpError("not equal to its adjoint"):
200 with self.assertRaisesOpError(""):
Dlinear_operator_identity_test.py122 with self.assertRaisesOpError("must be a 0-D Tensor"):
131 with self.assertRaisesOpError("must be non-negative"):
140 with self.assertRaisesOpError("must be a 1-D"):
149 with self.assertRaisesOpError("must be non-negative"):
167 with self.assertRaisesOpError("Incompatible.*dimensions"):
345 with self.assertRaisesOpError("not positive definite"):
359 with self.assertRaisesOpError("was singular"):
373 with self.assertRaisesOpError("not self-adjoint"):
409 with self.assertRaisesOpError("Incompatible.*dimensions"):
Dlinear_operator_diag_test.py69 with self.assertRaisesOpError("non-positive.*not positive definite"):
81 with self.assertRaisesOpError("non-positive real.*not positive definite"):
98 with self.assertRaisesOpError("Singular operator"):
116 with self.assertRaisesOpError("imaginary.*not self-adjoint"):
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Dstatistical_testing_test.py129 with self.assertRaisesOpError("true mean greater than expected"):
135 with self.assertRaisesOpError("true mean smaller than expected"):
152 with self.assertRaisesOpError("true mean greater than expected"):
159 with self.assertRaisesOpError("true mean smaller than expected"):
194 with self.assertRaisesOpError("true mean smaller than expected"):
211 with self.assertRaisesOpError("true mean greater than expected"):
224 with self.assertRaisesOpError("maximum value exceeds expectations"):
227 with self.assertRaisesOpError("minimum value falls below expectations"):
Dbinomial_test.py83 with self.assertRaisesOpError("Condition x >= 0.*"):
85 with self.assertRaisesOpError("Condition x <= y.*"):
87 with self.assertRaisesOpError("Condition x >= 0.*"):
89 with self.assertRaisesOpError("Condition x <= y.*"):
104 with self.assertRaisesOpError(
107 with self.assertRaisesOpError(
Dnegative_binomial_test.py73 with self.assertRaisesOpError("Condition x >= 0"):
80 with self.assertRaisesOpError("probs has components greater than 1."):
88 with self.assertRaisesOpError("Condition x > 0"):
116 with self.assertRaisesOpError("Condition x >= 0"):
149 with self.assertRaisesOpError("Condition x == y"):
153 with self.assertRaisesOpError("Condition x >= 0"):
Dgeometric_test.py49 with self.assertRaisesOpError("Condition x >= 0"):
55 with self.assertRaisesOpError("Condition x <= y"):
83 with self.assertRaisesOpError("Condition x == y"):
87 with self.assertRaisesOpError("Condition x >= 0"):
252 with self.assertRaisesOpError("Entropy is undefined"):
Dshape_test.py173 with self.assertRaisesOpError(""):
180 with self.assertRaisesOpError(""):
187 with self.assertRaisesOpError(""):
194 with self.assertRaisesOpError(""):
201 with self.assertRaisesOpError(""):
208 with self.assertRaisesOpError(""):
305 with self.assertRaisesOpError(""):
312 with self.assertRaisesOpError(""):
/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_to_dense_op_py_test.py115 with self.assertRaisesOpError(
124 with self.assertRaisesOpError(
132 with self.assertRaisesOpError("default_value should be a scalar"):
143 with self.assertRaisesOpError(
147 with self.assertRaisesOpError("out of bounds"):
164 with self.assertRaisesOpError(r"indices\[1\] = \[1\] is repeated"):
183 with self.assertRaisesOpError(r"indices\[1\] = \[1\] is out of order"):
Dbarrier_ops_test.py104 with self.assertRaisesOpError(
188 with self.assertRaisesOpError("is closed"):
194 with self.assertRaisesOpError("is closed"):
196 with self.assertRaisesOpError("is closed"):
413 with self.assertRaisesOpError("is closed"):
423 with self.assertRaisesOpError("is closed"):
428 with self.assertRaisesOpError(r"is closed and has insufficient elements "
444 with self.assertRaisesOpError("is closed and has insufficient elements"):
473 with self.assertRaisesOpError("is closed"):
477 with self.assertRaisesOpError("is closed"):
[all …]
Dnumerics_test.py53 with self.assertRaisesOpError(my_msg):
61 with self.assertRaisesOpError(my_msg):
77 with self.assertRaisesOpError("Inf"):
87 with self.assertRaisesOpError("NaN"):
97 with self.assertRaisesOpError("Inf and NaN"):
Dsegment_reduction_ops_test.py146 with self.assertRaisesOpError("segment_ids should be the same size"):
189 with self.assertRaisesOpError(
201 with self.assertRaisesOpError("segment ids are not increasing"):
211 with self.assertRaisesOpError(
224 with self.assertRaisesOpError("segment ids must be >= 0"):
235 with self.assertRaisesOpError("segment ids must be >= 0"):
427 with self.assertRaisesOpError(
617 with self.assertRaisesOpError(
630 with self.assertRaisesOpError(
643 with self.assertRaisesOpError("segment ids are not increasing"):
[all …]
Dreader_ops_test.py175 with self.assertRaisesOpError("is closed and has insufficient elements "
200 with self.assertRaisesOpError("is closed and has insufficient elements "
226 with self.assertRaisesOpError("is closed and has insufficient elements "
239 with self.assertRaisesOpError(
243 with self.assertRaisesOpError(
247 with self.assertRaisesOpError(
251 with self.assertRaisesOpError(
255 with self.assertRaisesOpError(
322 with self.assertRaisesOpError("is closed and has insufficient elements "
382 with self.assertRaisesOpError("is closed and has insufficient elements "
[all …]
Das_string_op_test.py75 with self.assertRaisesOpError("Cannot select both"):
79 with self.assertRaisesOpError("Fill string must be one or fewer"):
106 with self.assertRaisesOpError("scientific and shortest"):
110 with self.assertRaisesOpError("scientific and shortest"):
114 with self.assertRaisesOpError("precision not supported"):
219 with self.assertRaisesOpError("Cannot select both"):
Dcheck_ops_test.py192 with self.assertRaisesOpError("fail.*big.*small"):
271 with self.assertRaisesOpError("small.*big"):
327 with self.assertRaisesOpError("x != y did not hold"):
486 with self.assertRaisesOpError("x and y not equal to tolerance"):
497 with self.assertRaisesOpError("x and y not equal to tolerance"):
517 with self.assertRaisesOpError("failure message.*\n*.* x < y did not hold"):
529 with self.assertRaisesOpError("x < y did not hold"):
596 with self.assertRaisesOpError("fail"):
651 with self.assertRaisesOpError("fail"):
663 with self.assertRaisesOpError("x > y did not hold"):
[all …]
Ddecode_raw_op_test.py46 with self.assertRaisesOpError(
62 with self.assertRaisesOpError(
140 with self.assertRaisesOpError(
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/
Dsoftsign_test.py46 with self.assertRaisesOpError("greater than -1"):
48 with self.assertRaisesOpError("greater than -1"):
51 with self.assertRaisesOpError("less than 1"):
53 with self.assertRaisesOpError("less than 1"):
Dmatrix_inverse_tril_test.py180 with self.assertRaisesOpError(nonsingular_error_msg):
182 with self.assertRaisesOpError(nonsingular_error_msg):
184 with self.assertRaisesOpError(nonsingular_error_msg):
186 with self.assertRaisesOpError(nonsingular_error_msg):
Dabsolute_value_test.py59 with self.assertRaisesOpError("y was negative"):
65 with self.assertRaisesOpError("y was negative"):
/external/tensorflow/tensorflow/contrib/proto/python/kernel_tests/
Dencode_proto_op_test_base.py72 with self.assertRaisesOpError('Unknown field: non_existent_field'):
81 with self.assertRaisesOpError('Incompatible type for field double_value.'):
91 with self.assertRaisesOpError(
114 with self.assertRaisesOpError('Values must match up to the last dimension'):
/external/tensorflow/tensorflow/compiler/tests/
Dsparse_to_dense_op_test.py100 with self.assertRaisesOpError(
107 with self.assertRaisesOpError(
113 with self.assertRaisesOpError("default_value should be a scalar"):
/external/tensorflow/tensorflow/examples/adding_an_op/
Dzero_out_3_test.py45 with self.assertRaisesOpError("Need preserve_index >= 0, got -1"):
52 with self.assertRaisesOpError("preserve_index out of range"):
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_shuffle_queue_test.py278 with self.assertRaisesOpError(
287 with self.assertRaisesOpError(
299 with self.assertRaisesOpError(
308 with self.assertRaisesOpError(
1138 with self.assertRaisesOpError("capacity"):
1146 with self.assertRaisesOpError("min_after_dequeue"):
1154 with self.assertRaisesOpError("component types"):
1162 with self.assertRaisesOpError("component shapes"):
1170 with self.assertRaisesOpError("component shapes"):
1178 with self.assertRaisesOpError("component shapes"):
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dutil_test.py77 with self.assertRaisesOpError("has non-integer components"):
82 with self.assertRaisesOpError("has non-integer components"):
87 with self.assertRaisesOpError("has non-integer components"):
185 with self.assertRaisesOpError("Condition x >= 0"):
192 with self.assertRaisesOpError("probs has components greater than 1"):
212 with self.assertRaisesOpError("Condition x >= 0"):
221 with self.assertRaisesOpError(
231 with self.assertRaisesOpError("probs does not sum to 1"):
248 with self.assertRaisesOpError(
263 with self.assertRaisesOpError(
[all …]

123456