| 29 | |
| 30 | |
| 31 | class SubModule(flow.nn.Module): |
| 32 | def __init__(self): |
| 33 | super().__init__() |
| 34 | self.conv1 = flow.nn.Conv2d(1, 1, 5) |
| 35 | self.relu = flow.nn.ReLU() |
| 36 | |
| 37 | def forward(self, x): |
| 38 | x = self.conv1(x) |
| 39 | x = self.relu(x) |
| 40 | return x |
| 41 | |
| 42 | |
| 43 | class CustomModule(flow.nn.Module): |