| 42 | return (x + abs(x)) / 2.0 |
| 43 | |
| 44 | class ClippedRectify(object): |
| 45 | |
| 46 | def __init__(self, clip=10.): |
| 47 | self.clip = clip |
| 48 | |
| 49 | def __call__(self, x): |
| 50 | return T.clip((x + abs(x)) / 2.0, 0., self.clip) |
| 51 | |
| 52 | class LeakyRectify(object): |
| 53 |
nothing calls this directly
no outgoing calls
no test coverage detected