MCPcopy Create free account
hub / github.com/cswry/VOSR / forward

Method forward

models/pos_embed.py:139–146  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

137
138 @torch.compiler.disable
139 def forward(self, t):
140
141 cos = self.freqs_cos.clone().to(t.dtype)
142 sin = self.freqs_sin.clone().to(t.dtype)
143
144
145 results = t * cos + rotate_half(t) * sin
146 return results.contiguous()

Callers

nothing calls this directly

Calls 1

rotate_halfFunction · 0.85

Tested by

no test coverage detected