MCPcopy Create free account
hub / github.com/CompVis/diff2flow / forward

Method forward

diff2flow/tiny_autoencoder.py:25–26  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

23 self.skip = nn.Conv2d(n_in, n_out, 1, bias=False) if n_in != n_out else nn.Identity()
24 self.fuse = nn.ReLU()
25 def forward(self, x):
26 return self.fuse(self.conv(x) + self.skip(x))
27
28
29def Encoder(latent_channels=4):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected