MCPcopy Create free account
hub / github.com/pytorch/executorch / forward

Method forward

backends/nxp/tests/models.py:770–777  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

768 self.eval()
769
770 def forward(self, x):
771 if self.mode == "linear":
772 x = self.linear(x)
773 if self.mode == "addmm":
774 x = torch.addmm(self.bias, x, self.weight)
775 elif self.mode == "mm":
776 x = torch.mm(x, self.weight)
777 return self.activation(x)
778
779
780class ConvActivationModule(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

activationMethod · 0.80

Tested by

no test coverage detected