MCPcopy Create free account
hub / github.com/NVlabs/SegFormer / __init__

Method __init__

tests/test_eval_hook.py:28–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26class ExampleModel(nn.Module):
27
28 def __init__(self):
29 super(ExampleModel, self).__init__()
30 self.test_cfg = None
31 self.conv = nn.Conv2d(3, 3, 3)
32
33 def forward(self, img, img_metas, test_mode=False, **kwargs):
34 return img

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected