MCPcopy Create free account
hub / github.com/microsoft/BitNet / forward

Method forward

gpu/model.py:83–85  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

81 return (input * s).round().clamp(-128, 127) / s
82
83 def forward(self, input):
84 input = self.quant_input(input)
85 return F.linear(input, self.weight)
86
87class Attention(nn.Module):
88 def __init__(

Callers 1

forwardMethod · 0.45

Calls 1

quant_inputMethod · 0.95

Tested by

no test coverage detected