Skip to content

Commit 3d622d0

Browse files
HuanyuZhangfacebook-github-bot
authored andcommitted
Fix the import order for D51126461 (#610)
Summary: Pull Request resolved: #610 In D51126461, we did not import the library according to the alphabetical order, therefore triggering some linter test failure. We therefore made this diff to fix it. Reviewed By: lucamelis Differential Revision: D51166750 fbshipit-source-id: 7dd441b49728a63502a6a3f536559e754ccae576
1 parent 8dfdc2e commit 3d622d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opacus/tests/batch_memory_manager_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import torch
1818
import torch.nn as nn
19-
from hypothesis import given, settings, HealthCheck
19+
from hypothesis import HealthCheck, given, settings
2020
from hypothesis import strategies as st
2121
from opacus import PrivacyEngine
2222
from opacus.utils.batch_memory_manager import BatchMemoryManager

opacus/tests/privacy_engine_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import torch
2727
import torch.nn as nn
2828
import torch.nn.functional as F
29-
from hypothesis import given, settings, HealthCheck
29+
from hypothesis import HealthCheck, given, settings
3030
from opacus import PrivacyEngine
3131
from opacus.layers.dp_multihead_attention import DPMultiheadAttention
3232
from opacus.optimizers.optimizer import _generate_noise

0 commit comments

Comments
 (0)