Skip to content

Commit

Permalink
Renamed variable Block in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
jernsting committed Jul 12, 2021
1 parent 71338d9 commit e107e1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions useful_layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ def reduction_network(in_channels: int,
if dim not in ["2d", "3d"]:
raise ValueError(f'dim should be 2d or 3d. Got {dim}')
if dim == "2d":
Block = nn.Conv2d
block = nn.Conv2d
if dim == "3d":
Block = nn.Conv3d
conv1 = Block(in_channels=in_channels,
block = nn.Conv3d
conv1 = block(in_channels=in_channels,
out_channels=in_channels // reduction,
kernel_size=1,
stride=1,
padding=0,
bias=True)
conv2 = Block(in_channels=in_channels // reduction,
conv2 = block(in_channels=in_channels // reduction,
out_channels=in_channels,
kernel_size=1,
stride=1,
Expand Down

0 comments on commit e107e1c

Please sign in to comment.