Skip to content

Commit 2ceaae3

Browse files
author
Beat Buesser
committed
Fix LGTM alerts
Signed-off-by: Beat Buesser <[email protected]>
1 parent df2e613 commit 2ceaae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def _get_image_iterator():
233233
return dataset
234234

235235
if framework == "pytorch":
236-
import torch
236+
import torch # lgtm [py/repeated-import]
237237

238238
# Create tensors from data
239239
x_train_tens = torch.from_numpy(x_train_mnist)
@@ -944,7 +944,7 @@ def __init__(self):
944944
preprocessing=(0, 1),
945945
)
946946

947-
import torch
947+
import torch # lgtm [py/repeated-import]
948948

949949
self.channels_first = False
950950
self._input_shape = None

0 commit comments

Comments
 (0)