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

Method forward

test/models/export_delegated_program.py:70–76  ·  view source on GitHub ↗
(
        self, a: torch.Tensor, b: torch.Tensor, c: torch.Tensor
    )

Source from the content-addressed store, hash-verified

68 super().__init__()
69
70 def forward(
71 self, a: torch.Tensor, b: torch.Tensor, c: torch.Tensor
72 ) -> torch.Tensor:
73 x: torch.Tensor = torch.add(a, b)
74 y: torch.Tensor = torch.add(x, c)
75 z: torch.Tensor = torch.add(x, y)
76 return z
77
78 def get_random_inputs(self) -> Sequence[torch.Tensor]:
79 n = 10 # to create a large tensor

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected