MCPcopy Create free account
hub / github.com/BBuf/tvm_mlir_learn / forward

Method forward

torchscript/trace.py:9–11  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

7 super(MyModule,self).__init__()
8 self.conv1 = nn.Conv2d(1,3,3)
9 def forward(self,x):
10 x = self.conv1(x)
11 return x
12
13model = MyModule() # 实例化模型
14trace_module = torch.jit.trace(model,torch.rand(1,1,224,224))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected