MCPcopy
hub / github.com/Hillobar/Rope / forward

Method forward

clip/model.py:160–163  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

158 """Subclass torch's LayerNorm to handle fp16."""
159
160 def forward(self, x: torch.Tensor):
161 orig_type = x.dtype
162 ret = super().forward(x.type(torch.float32))
163 return ret.type(orig_type)
164
165
166class QuickGELU(nn.Module):

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected