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

Method __init__

models/unet_model_google.py:63–66  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

61
62class AttentiveGuide(nn.Module):
63 def __init__(self, dim):
64 super().__init__()
65 self.norm1 = LayerNorm2d(dim)
66 self.norm2 = LayerNorm2d(dim)
67
68 def forward(self, x, g):
69 return self.norm1(x) * self.norm2(g) * x

Callers

nothing calls this directly

Calls 2

LayerNorm2dClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected