mirror of
https://github.com/labmlai/annotated_deep_learning_paper_implementations.git
synced 2025-08-14 09:31:42 +08:00
fix: potential typo in resnet comments
This commit is contained in:
@ -128,7 +128,7 @@ class ResidualBlock(Module):
|
||||
self.bn2 = nn.BatchNorm2d(out_channels)
|
||||
|
||||
# Shortcut connection should be a projection if the stride length is not $1$
|
||||
# of if the number of channels change
|
||||
# or if the number of channels change
|
||||
if stride != 1 or in_channels != out_channels:
|
||||
# Projection $W_s x$
|
||||
self.shortcut = ShortcutProjection(in_channels, out_channels, stride)
|
||||
@ -210,7 +210,7 @@ class BottleneckResidualBlock(Module):
|
||||
self.bn3 = nn.BatchNorm2d(out_channels)
|
||||
|
||||
# Shortcut connection should be a projection if the stride length is not $1$
|
||||
# of if the number of channels change
|
||||
# or if the number of channels change
|
||||
if stride != 1 or in_channels != out_channels:
|
||||
# Projection $W_s x$
|
||||
self.shortcut = ShortcutProjection(in_channels, out_channels, stride)
|
||||
|
Reference in New Issue
Block a user