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

Method forward

exir/tests/test_passes.py:2040–2045  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

2038 def test_normalize_view_copy_base_pass(self) -> None:
2039 class ViewChain(torch.nn.Module):
2040 def forward(self, x):
2041 x = torch.ops.aten.view_copy.default(x, [30, 1])
2042 x = torch.ops.aten.view_copy.default(x, [5, 6])
2043 x = torch.ops.aten.view_copy.default(x, [2, 15])
2044 x = torch.ops.aten.view_copy.default(x, [3, -1])
2045 return x
2046
2047 def is_view_copy(node: torch.fx.Node) -> bool:
2048 return (

Callers

nothing calls this directly

Calls 1

defaultMethod · 0.45

Tested by

no test coverage detected