MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / Swish

Class Swish

modules/se.py:5–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3__all__ = ['SE3d']
4
5class Swish(nn.Module):
6 def forward(self,x):
7 return x * torch.sigmoid(x)
8class SE3d(nn.Module):
9 def __init__(self, channel, reduction=8, use_relu=False):
10 super().__init__()

Callers 3

_linear_gn_reluFunction · 0.90
_linear_gn_reluFunction · 0.90
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected