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

Class AttentiveGuide

models/unet_model_google.py:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
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
70
71
72class Upsample(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected