MCPcopy Create free account
hub / github.com/DIVE128/DMVSNet / forward

Method forward

networks/module.py:102–111  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

100 # self.init_weights(init_method)
101
102 def forward(self, x):
103 y = self.conv(x)
104 if self.stride == 2:
105 h, w = list(x.size())[2:]
106 y = y[:, :, :2 * h, :2 * w].contiguous()
107 if self.bn is not None:
108 x = self.bn(y)
109 if self.relu:
110 x = F.relu(x, inplace=True)
111 return x
112
113 def init_weights(self, init_method):
114 """default initialization"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected