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

Method __init__

models/sr3.py:255–258  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

253
254class Upsample(nn.Module):
255 def __init__(self, dim):
256 super().__init__()
257 self.up = nn.Upsample(scale_factor=2, mode="nearest")
258 self.conv = nn.Conv2d(dim, dim, 3, padding=1)
259
260 def forward(self, x):
261 return self.conv(self.up(x))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected