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

Method forward

intermediate_source/torch_compile_conv_bn_fuser.py:63–69  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

61 self.wrapped = WrappedBatchNorm()
62
63 def forward(self, x):
64 x = self.conv1(x)
65 x = self.bn1(x)
66 x = self.conv2(x)
67 x = self.nested(x)
68 x = self.wrapped(x)
69 return x
70
71model = M().to(device)
72model.eval()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected