MCPcopy Index your code
hub / github.com/huggingface/diffusers / __init__

Method __init__

src/diffusers/models/embeddings.py:597–604  ·  view source on GitHub ↗
(self, patch_size=2, in_channels=4, embed_dim=768, bias=True)

Source from the content-addressed store, hash-verified

595 """
596
597 def __init__(self, patch_size=2, in_channels=4, embed_dim=768, bias=True):
598 super().__init__()
599 self.patch_size = patch_size
600 self.proj = nn.Linear(
601 in_features=patch_size * patch_size * in_channels,
602 out_features=embed_dim,
603 bias=bias,
604 )
605
606 def forward(self, x, freqs_cis):
607 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected