We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7259ca commit 8c33592Copy full SHA for 8c33592
tensorflow_model_optimization/python/core/internal/tensor_encoding/core/simple_encoder_test.py
@@ -172,10 +172,10 @@ def test_input_signature_enforced(self):
172
tf.TensorSpec.from_tensor(x))
173
174
state = encoder.initial_state()
175
- with self.assertRaises(ValueError):
+ with self.assertRaises((TypeError, ValueError)):
176
bad_x = tf.stack([x, x])
177
encoder.encode(bad_x, state)
178
179
bad_state = state + (x,)
180
encoder.encode(x, bad_state)
181
encoded_x = encoder.encode(x, state)
0 commit comments