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

Method forward

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

Source from the content-addressed store, hash-verified

9 self.conv2 = nn.Conv2d(2,3,3)
10
11 def forward(self,x):
12 b,c,h,w = x.shape
13 if c ==1:
14 x = self.conv1(x)
15 else:
16 x = self.conv2(x)
17 return x
18
19model = MyModule()
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected