Skip to content

Commit c35be72

Browse files
set seed to ensure consistency of ci test
PiperOrigin-RevId: 460848669
1 parent 9dc53f6 commit c35be72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorflow_model_optimization/python/core/internal/tensor_encoding/stages/stages_impl_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ def test_encoding_randomized(self):
153153
((9, 7), (9, 8))])
154154
def test_with_multiple_input_shapes(self, input_dims, expected_output_dims):
155155
test_data = self.run_one_to_many_encode_decode(
156-
self.default_encoding_stage(), lambda: tf.random.normal(input_dims))
156+
self.default_encoding_stage(),
157+
lambda: tf.random.stateless_normal(input_dims, (7, 77)))
157158
self.common_asserts_for_test_data(test_data)
158159
# Make sure output shape is as expected.
159160
self.assertEqual(

0 commit comments

Comments
 (0)