Skip to content

Commit 6238654

Browse files
committed
./runtests.sh --autofix
Signed-off-by: jirka <jirka.borovec@seznam.cz>
1 parent d8bae00 commit 6238654

File tree

15 files changed

+8
-16
lines changed

15 files changed

+8
-16
lines changed

monai/losses/ds_loss.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from __future__ import annotations
1313

14-
1514
import torch
1615
import torch.nn.functional as F
1716
from torch.nn.modules.loss import _Loss

monai/losses/perceptual.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def __init__(
9595

9696
if network_type.lower() not in list(PercetualNetworkType):
9797
raise ValueError(
98-
"Unrecognised criterion entered for Perceptual Loss. Must be one in: {}".format(", ".join(PercetualNetworkType))
98+
"Unrecognised criterion entered for Perceptual Loss. Must be one in: {}".format(
99+
", ".join(PercetualNetworkType)
100+
)
99101
)
100102

101103
if cache_dir:

monai/metrics/utils.py

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

1414
import warnings
1515
from collections.abc import Iterable, Sequence
16-
from functools import partial, cache
16+
from functools import cache, partial
1717
from types import ModuleType
1818
from typing import Any
1919

monai/networks/blocks/attention_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from __future__ import annotations
1111

12-
1312
import torch
1413
import torch.nn.functional as F
1514
from torch import nn

monai/networks/blocks/crossattention.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from __future__ import annotations
1313

14-
1514
import torch
1615
import torch.nn as nn
1716

monai/networks/blocks/mlp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from __future__ import annotations
1313

14-
1514
import torch.nn as nn
1615

1716
from monai.networks.layers import get_act_layer

monai/networks/blocks/selfattention.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from __future__ import annotations
1313

14-
1514
import torch
1615
import torch.nn as nn
1716
import torch.nn.functional as F

monai/networks/blocks/spatialattention.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from __future__ import annotations
1313

14-
1514
import torch
1615
import torch.nn as nn
1716

monai/networks/blocks/transformerblock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from __future__ import annotations
1313

14-
1514
import torch
1615
import torch.nn as nn
1716

monai/networks/layers/simplelayers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from __future__ import annotations
1313

1414
import math
15-
from copy import deepcopy
1615
from collections.abc import Sequence
16+
from copy import deepcopy
1717

1818
import torch
1919
import torch.nn.functional as F

0 commit comments

Comments
 (0)