MCPcopy
hub / github.com/facebookresearch/detectron2 / __init__

Method __init__

detectron2/modeling/backbone/regnet.py:79–83  ·  view source on GitHub ↗
(self, w_in, w_out, norm, activation_class)

Source from the content-addressed store, hash-verified

77 """Simple stem for ImageNet: 3x3, BN, AF."""
78
79 def __init__(self, w_in, w_out, norm, activation_class):
80 super().__init__(w_in, w_out, 2)
81 self.conv = conv2d(w_in, w_out, 3, stride=2)
82 self.bn = get_norm(norm, w_out)
83 self.af = activation_class()
84
85 def forward(self, x):
86 for layer in self.children():

Callers

nothing calls this directly

Calls 3

get_normFunction · 0.90
conv2dFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected