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

Method forward

exir/tests/test_joint_graph.py:35–36  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

33 self.loss = torch.nn.CrossEntropyLoss()
34
35 def forward(self, x, y):
36 return self.loss(self.linear_no_train(self.linear(x)).softmax(dim=0), y)
37
38 m = Module()
39 example_inputs = (torch.ones(3), torch.tensor([1.0, 0.0, 0.0]))

Callers 1

test_joint_graphMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected