MCPcopy Create free account
hub / github.com/deepbrainai-research/float / __init__

Method __init__

models/float/encoder.py:180–186  ·  view source on GitHub ↗
(self, in_channel, out_channel, blur_kernel=[1, 3, 3, 1])

Source from the content-addressed store, hash-verified

178
179class ResBlock(nn.Module):
180 def __init__(self, in_channel, out_channel, blur_kernel=[1, 3, 3, 1]):
181 super().__init__()
182
183 self.conv1 = ConvLayer(in_channel, in_channel, 3)
184 self.conv2 = ConvLayer(in_channel, out_channel, 3, downsample=True)
185
186 self.skip = ConvLayer(in_channel, out_channel, 1, downsample=True, activate=False, bias=False)
187
188 def forward(self, input):
189 out = self.conv1(input)

Callers

nothing calls this directly

Calls 2

ConvLayerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected