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

Method forward

beginner_source/onnx/onnx_registry_tutorial.py:80–81  ·  view source on GitHub ↗
(self, input_x, input_y)

Source from the content-addressed store, hash-verified

78# Create a model that uses the operator torch.ops.aten.add.Tensor
79class Model(torch.nn.Module):
80 def forward(self, input_x, input_y):
81 return torch.ops.aten.add.Tensor(input_x, input_y)
82
83
84# NOTE: The function signature (including parameter names) must match the signature of the unsupported PyTorch operator.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected