MCPcopy Create free account
hub / github.com/pytorch/tutorials / body

Method body

intermediate_source/torch_export_tutorial.py:233–234  ·  view source on GitHub ↗
(x, y, z)

Source from the content-addressed store, hash-verified

231class MapModule(torch.nn.Module):
232 def forward(self, xs, y, z):
233 def body(x, y, z):
234 return x + y + z
235
236 return torch_map(body, xs, y, z)
237

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected