MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / forward

Method forward

src/encoding/blocks.py:149–161  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

147 self.shortcut = nn.Identity()
148
149 def forward(self, x):
150 if self.up:
151 in_rest, in_conv = self.in_layers[:-1], self.in_layers[-1]
152 h = in_rest(x)
153 h = F.interpolate(h, scale_factor=2, mode="bilinear", align_corners=False)
154 x = F.interpolate(x, scale_factor=2, mode="bilinear", align_corners=False)
155 h = in_conv(h)
156 else:
157 h = self.in_layers(x)
158
159 h = self.out_layers(h)
160 h = h + self.shortcut(x)
161 return h
162
163
164def compose_triplane_channelwise(feat_maps):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected