"examples/pytorch/vscode:/vscode.git/clone" did not exist on "b8dffcd57fab28ebea6d4cae79a09d44e9bfe7a7"
Commit 2c254c63 authored by Scott Zhu's avatar Scott Zhu Committed by A. Unique TensorFlower
Browse files

Fix the test failure caused by keras initializer change.

PiperOrigin-RevId: 454463130
parent c2a8f717
......@@ -29,6 +29,10 @@ from official.vision.serving import detection
class DetectionExportTest(tf.test.TestCase, parameterized.TestCase):
def setUp(self):
super().setUp()
tf.keras.utils.set_random_seed(1)
def _get_detection_module(self, experiment_name, input_type):
params = exp_factory.get_exp_config(experiment_name)
params.task.model.backbone.resnet.model_id = 18
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment