(act_type, **kwargs)
| 54 | return inputs |
| 55 | |
| 56 | def _act(act_type, **kwargs): |
| 57 | if act_type is None or act_type == "Identity": |
| 58 | return Identity_() |
| 59 | elif act_type == "ReLU": |
| 60 | result = nn.ReLU(inplace=True) |
| 61 | return result |
| 62 | else: |
| 63 | raise Exception("Not implemented !!!") |
| 64 | |
| 65 | |
| 66 | raise Exception("_act: Go here ..., maybe don\'t define some act") |
| 67 | |
| 68 | |
| 69 |