skip connect
| 43 | |
| 44 | |
| 45 | class Identity_(nn.Module): |
| 46 | """ |
| 47 | skip connect |
| 48 | """ |
| 49 | |
| 50 | def __init__(self): |
| 51 | super(Identity_, self).__init__() |
| 52 | |
| 53 | def forward(self, inputs): |
| 54 | return inputs |
| 55 | |
| 56 | def _act(act_type, **kwargs): |
| 57 | if act_type is None or act_type == "Identity": |