MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / forward

Method forward

k_diffusion/models/axial_rope.py:107–109  ·  view source on GitHub ↗
(self, x, pos)

Source from the content-addressed store, hash-verified

105 return freqs.transpose(-2, -3)
106
107 def forward(self, x, pos):
108 freqs = self.get_freqs(pos)
109 return apply_rotary_emb(freqs, x, self.start_index)

Callers

nothing calls this directly

Calls 2

get_freqsMethod · 0.95
apply_rotary_embFunction · 0.70

Tested by

no test coverage detected