MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / __init__

Method __init__

preprocess/auxiliary/ICNet.py:9–17  ·  view source on GitHub ↗
(self, spatial_dim)

Source from the content-addressed store, hash-verified

7
8class slam(nn.Module):
9 def __init__(self, spatial_dim):
10 super(slam,self).__init__()
11 self.spatial_dim = spatial_dim
12 self.linear = nn.Sequential(
13 nn.Linear(spatial_dim**2,512),
14 nn.ReLU(),
15 nn.Linear(512,1),
16 nn.Sigmoid()
17 )
18
19 def forward(self, feature):
20 n,c,h,w = feature.shape

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected