| 24 | return cat((x, y), dim=1) |
| 25 | |
| 26 | class SkipConnection(nn.Module): |
| 27 | def __init__(self,): |
| 28 | super(SkipConnection, self).__init__() |
| 29 | |
| 30 | def forward(self, x: Tensor, skip: Tensor) -> Tensor: |
| 31 | return x + skip |
| 32 | |
| 33 | class ApplyVectorWeights(nn.Module): |
| 34 | def __init__(self): |