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

Class SimpleModule

backends/mlx/test/test_pattern_utils.py:170–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 from executorch.backends.mlx.pattern_utils import OpStep
169
170 class SimpleModule(torch.nn.Module):
171 def forward(self, x):
172 return torch.rsqrt(x)
173
174 graph = get_exported_graph(SimpleModule(), (torch.randn(4, 4),))
175 rsqrt_node = find_node_by_target(graph, "rsqrt")

Calls

no outgoing calls