MCPcopy Create free account
hub / github.com/bingchenlll/FastGAN-pytorch / upBlock

Method upBlock

models.py:326–331  ·  view source on GitHub ↗
(in_planes, out_planes)

Source from the content-addressed store, hash-verified

324 nfc[k] = int(v*32)
325
326 def upBlock(in_planes, out_planes):
327 block = nn.Sequential(
328 nn.Upsample(scale_factor=2, mode='nearest'),
329 conv2d(in_planes, out_planes*2, 3, 1, 1, bias=False),
330 batchNorm2d(out_planes*2), GLU())
331 return block
332
333 self.main = nn.Sequential( nn.AdaptiveAvgPool2d(8),
334 upBlock(nfc_in, nfc[16]) ,

Callers

nothing calls this directly

Calls 3

conv2dFunction · 0.85
batchNorm2dFunction · 0.85
GLUClass · 0.85

Tested by

no test coverage detected