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

Class Downsample

models/unet_model_google.py:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84class Downsample(nn.Module):
85 def __init__(self, dim):
86 super().__init__()
87 self.conv = nn.Conv2d(dim, dim, 3, 2, 1)
88
89 def forward(self, x):
90 return self.conv(x)
91
92
93# building block modules

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected