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

Method __init__

exir/tests/test_verification.py:153–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 def test_edge_happy(self) -> None:
152 class TestModel(torch.nn.Module):
153 def __init__(self):
154 super().__init__()
155 self.register_buffer("a", torch.randn(1, 3, 100, 100))
156
157 def forward(self, x):
158 b = self.a + x

Callers

nothing calls this directly

Calls 2

register_bufferMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected