Add seed to flaky unit test.

This commit is contained in:
Ryan Dick
2024-12-30 17:53:14 -05:00
parent 7127040c3a
commit 402dd840a1

View File

@ -358,6 +358,8 @@ def patch_under_test(request: pytest.FixtureRequest) -> PatchUnderTest:
def test_linear_sidecar_patches(device: str, patch_under_test: PatchUnderTest):
patches, input = patch_under_test
torch.manual_seed(0)
# Build the base layer under test.
layer = torch.nn.Linear(32, 64)