MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / forward

Method forward

imperative/python/megengine/module/linear.py:71–72  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

69 return linear(x, weight, bias, compute_mode=self.compute_mode)
70
71 def forward(self, x):
72 return self.calc_linear(x, self.weight, self.bias)
73
74 def _module_info_string(self) -> str:
75 return "in_features={}, out_features={}, bias={}".format(

Callers

nothing calls this directly

Calls 1

calc_linearMethod · 0.95

Tested by

no test coverage detected