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

Method __init__

backends/vulkan/test/test_vulkan_passes.py:23–27  ·  view source on GitHub ↗
(self, K=256, N=128)

Source from the content-addressed store, hash-verified

21
22class SingleLinearModule(torch.nn.Module):
23 def __init__(self, K=256, N=128):
24 super().__init__()
25 self.K = K
26 self.N = N
27 self.linear = torch.nn.Linear(K, N, bias=False)
28
29 def forward(self, x):
30 return self.linear(x)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected