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

Method __init__

backends/arm/test/ops/test_while.py:122–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120
121class WhileSingleCapturedOutput(torch.nn.Module):
122 def __init__(self) -> None:
123 super().__init__()
124 self.register_buffer("threshold", torch.tensor((128.0,)))
125
126 def forward(self, value: torch.Tensor) -> torch.Tensor:
127 def cond_fn(value: torch.Tensor, limit: torch.Tensor) -> torch.Tensor:

Callers

nothing calls this directly

Calls 2

register_bufferMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected