| 37 | |
| 38 | |
| 39 | class MyModule(torch.nn.Module): |
| 40 | |
| 41 | def __init__(self, *args, **kwargs) -> None: |
| 42 | super().__init__(*args, **kwargs) |
| 43 | self.fc0 = torch.nn.Linear(1024, 256, bias=False) |
| 44 | self.fc1 = torch.nn.Linear(256, 256, bias=False) |
| 45 | self.dropout = torch.nn.Dropout(0.5) |
| 46 | |
| 47 | def forward(self, data, residual): |
| 48 | output = residual + self.fc1(self.fc0(self.dropout(data))) * 0.5 |
| 49 | return output |
| 50 | |
| 51 | |
| 52 | model = MyModule() |
no outgoing calls
no test coverage detected
searching dependent graphs…