MCPcopy Create free account
hub / github.com/pytorch/examples / WrapperModule

Class WrapperModule

fx/native_interpreter/use_interpreter.py:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81 # ===== Stage 3: Create a wrapper GraphModule around the interpreter =====
82 class WrapperModule(torch.nn.Module):
83 def __init__(self, interpreter):
84 super().__init__()
85 self.interpreter = interpreter
86
87 wrapper = WrapperModule(interpreter)
88

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected