MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/modules.py:180–183  ·  view source on GitHub ↗
(self, channels, reduction=16, kernel_size=7)

Source from the content-addressed store, hash-verified

178
179class CBAM(nn.Module):
180 def __init__(self, channels, reduction=16, kernel_size=7):
181 super().__init__()
182 self.channel_attention = SqueezeExcitation(channels, reduction)
183 self.spatial_attention = SpatialAttention(kernel_size)
184
185 def forward(self, x):
186 x = self.channel_attention(x)

Callers 12

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

SqueezeExcitationClass · 0.85
SpatialAttentionClass · 0.85

Tested by

no test coverage detected