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

Class TestLinear

exir/program/test/test_program.py:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46class TestLinear(torch.nn.Module):
47 def __init__(self):
48 super().__init__()
49 self.linear = torch.nn.Linear(32, 16, bias=True)
50
51 def forward(self, x):
52 return self.linear(x)
53
54 @classmethod
55 def _get_random_inputs(cls):
56 x = torch.rand(8, 32)
57 return (x,)
58
59
60class TestSDPA(torch.nn.Module):

Calls

no outgoing calls