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

Method forward

beginner_source/onnx/onnx_registry_tutorial.py:139–140  ·  view source on GitHub ↗
(self, input_x)

Source from the content-addressed store, hash-verified

137
138class GeluModel(torch.nn.Module):
139 def forward(self, input_x):
140 return torch.ops.aten.gelu(input_x)
141
142
143# Create a namespace for the custom operator using ONNX Script

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected