We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b071be commit d3a6dacCopy full SHA for d3a6dac
torchvision/ops/feature_pyramid_network.py
@@ -86,7 +86,7 @@ def __init__(
86
self.layer_blocks.append(layer_block_module)
87
88
# initialize parameters now to avoid modifying the initialization of top_blocks
89
- for m in self.children():
+ for m in self.modules():
90
if isinstance(m, nn.Conv2d):
91
nn.init.kaiming_uniform_(m.weight, a=1)
92
nn.init.constant_(m.bias, 0)
0 commit comments