MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / forward

Method forward

toolbench/model/compression.py:34–35  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

32 self.bias = bias
33
34 def forward(self, input):
35 return F.linear(input.to(self.weight.dtype), self.weight, self.bias)
36
37
38def compress_module(module, target_device):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected