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

Method __init__

intermediate_source/torch_export_tutorial.py:849–852  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

847
848class DecompExample(torch.nn.Module):
849 def __init__(self) -> None:
850 super().__init__()
851 self.conv = torch.nn.Conv2d(1, 3, 1, 1)
852 self.bn = torch.nn.BatchNorm2d(3)
853
854 def forward(self, x):
855 x = self.conv(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected