MCPcopy Create free account
hub / github.com/Vchitect/Latte / get_dim

Method get_dim

tools/utils/layers.py:313–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 self.register_buffer('fourier_coefs', fourier_coefs) # [1, num_fourier_feats]
312
313 def get_dim(self) -> int:
314 return self.fourier_coefs.shape[1] * 2
315
316 def forward(self, t: torch.Tensor) -> torch.Tensor:
317 assert t.ndim == 2, f"Wrong shape: {t.shape}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected