MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / __init__

Method __init__

timm/models/xcit.py:107–114  ·  view source on GitHub ↗
(self, hidden_dim=32, dim=768, temperature=10000)

Source from the content-addressed store, hash-verified

105 """
106
107 def __init__(self, hidden_dim=32, dim=768, temperature=10000):
108 super().__init__()
109 self.token_projection = nn.Conv2d(hidden_dim * 2, dim, kernel_size=1)
110 self.scale = 2 * math.pi
111 self.temperature = temperature
112 self.hidden_dim = hidden_dim
113 self.dim = dim
114 self.eps = 1e-6
115
116 def forward(self, B: int, H: int, W: int):
117 device = self.token_projection.weight.device

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected