Skip to content

Commit 49237e6

Browse files
committed
black
1 parent fea4878 commit 49237e6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/model_constructor/model_constructor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def init_cnn(module: nn.Module) -> None:
3535

3636
class BasicBlock(nn.Module):
3737
"""Basic Resnet block.
38-
Configurable - can use pool to reduce at identity path, change act etc. """
38+
Configurable - can use pool to reduce at identity path, change act etc."""
3939

4040
def __init__(
4141
self,
@@ -119,7 +119,7 @@ def forward(self, x: torch.Tensor) -> torch.Tensor: # type: ignore
119119

120120
class BottleneckBlock(nn.Module):
121121
"""Bottleneck Resnet block.
122-
Configurable - can use pool to reduce at identity path, change act etc. """
122+
Configurable - can use pool to reduce at identity path, change act etc."""
123123

124124
def __init__(
125125
self,
@@ -408,7 +408,9 @@ def from_cfg(cls, cfg: ModelCfg):
408408
return cls(**cfg.model_dump())
409409

410410
@classmethod
411-
def create_model(cls, cfg: Union[ModelCfg, None] = None, **kwargs: dict[str, Any]) -> nn.Sequential:
411+
def create_model(
412+
cls, cfg: Union[ModelCfg, None] = None, **kwargs: dict[str, Any]
413+
) -> nn.Sequential:
412414
if cfg:
413415
return cls(**cfg.model_dump())()
414416
return cls(**kwargs)()

0 commit comments

Comments
 (0)