Skip to content

Commit 1683b14

Browse files
committed
run ./runtests.sh --autofix to check formatting
1 parent 5b3d4e1 commit 1683b14

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

monai/networks/blocks/cablock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
import torch
1414
import torch.nn as nn
1515
import torch.nn.functional as F
16+
17+
from monai.networks.blocks.convolutions import Convolution
1618
from monai.utils import optional_import
1719

1820
rearrange, _ = optional_import("einops", name="rearrange")
1921

20-
from monai.networks.blocks.convolutions import Convolution
21-
2222
__all__ = ["FeedForward", "CABlock"]
2323

2424

monai/networks/nets/restormer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class OverlapPatchEmbed(nn.Module):
6161
"""Initial feature extraction using overlapped convolutions.
6262
Unlike standard patch embeddings that use non-overlapping patches,
6363
this approach maintains spatial continuity through 3x3 convolutions.
64-
64+
6565
Args:
6666
spatial_dims: Number of spatial dimensions (2D or 3D)
6767
in_channels: Number of input channels
@@ -300,7 +300,7 @@ def forward(self, x) -> torch.Tensor:
300300
Restored image tensor of shape (B, C, H, W, [D])
301301
"""
302302
assert all(
303-
x.shape[-i] > 2 ** self.num_steps for i in range(1, self.spatial_dims + 1)
303+
x.shape[-i] > 2**self.num_steps for i in range(1, self.spatial_dims + 1)
304304
), "All spatial dimensions should be larger than 2^number_of_step"
305305

306306
# Patch embedding

monai/utils/jupyter_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def plot_engine_status(
234234

235235

236236
def _get_loss_from_output(
237-
output: list[torch.Tensor | dict[str, torch.Tensor]] | dict[str, torch.Tensor] | torch.Tensor,
237+
output: list[torch.Tensor | dict[str, torch.Tensor]] | dict[str, torch.Tensor] | torch.Tensor
238238
) -> torch.Tensor:
239239
"""Returns a single value from the network output, which is a dict or tensor."""
240240

0 commit comments

Comments
 (0)