MCPcopy Create free account
hub / github.com/294coder/Dif-PAN / Downsample

Class Downsample

models/sr3.py:264–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264class Downsample(nn.Module):
265 def __init__(self, dim):
266 super().__init__()
267 self.conv = nn.Conv2d(dim, dim, 3, 2, 1)
268
269 def forward(self, x):
270 return self.conv(x)
271
272
273# building block modules

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected