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

Method forward

advanced_source/custom_classes/custom_class_project/save.py:10–12  ·  view source on GitHub ↗
(self, s: str)

Source from the content-addressed store, hash-verified

8 super().__init__()
9
10 def forward(self, s: str) -> str:
11 stack = torch.classes.my_classes.MyStackClass(["hi", "mom"])
12 return stack.pop() + s
13
14
15scripted_foo = torch.jit.script(Foo())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected