MCPcopy Index your code
hub / github.com/CompVis/diff2flow / __init__

Method __init__

diff2flow/tiny_autoencoder.py:20–24  ·  view source on GitHub ↗
(self, n_in, n_out)

Source from the content-addressed store, hash-verified

18
19class Block(nn.Module):
20 def __init__(self, n_in, n_out):
21 super().__init__()
22 self.conv = nn.Sequential(conv(n_in, n_out), nn.ReLU(), conv(n_out, n_out), nn.ReLU(), conv(n_out, n_out))
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

Callers 1

__init__Method · 0.45

Calls 1

convFunction · 0.85

Tested by

no test coverage detected