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

Method __init__

exir/tests/models.py:25–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23
24class TensorItem(nn.Module):
25 def __init__(self) -> None:
26 super().__init__()
27
28 def forward(self, arg1: torch.Tensor, arg2: torch.Tensor) -> torch.Tensor:
29 h = arg1.item()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected