Method
__init__
(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
Tested by
no test coverage detected