MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / default_conv

Method default_conv

lib/Modules.py:701–702  ·  view source on GitHub ↗
(self, in_channels, out_channels, kernel_size, bias=True)

Source from the content-addressed store, hash-verified

699 self.res_scale = res_scale
700
701 def default_conv(self, in_channels, out_channels, kernel_size, bias=True):
702 return nn.Conv2d(in_channels, out_channels, kernel_size, padding=(kernel_size // 2), bias=bias)
703
704 def forward(self, x):
705 res = self.body(x)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected