MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / forward

Method forward

quantization/qmodule.py:37–38  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

35 self.scales = nn.Parameter(scales.data)
36
37 def forward(self, x):
38 return self.act(x) / self.scales.view(1, 1, -1).to(x.device)
39
40
41class WQLinear(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected