| 104 | return T.clip(X + 0.5, 0., 1.) |
| 105 | |
| 106 | class TRec(object): |
| 107 | |
| 108 | def __init__(self, t=1): |
| 109 | self.t = t |
| 110 | |
| 111 | def __call__(self, X): |
| 112 | return X*(X > self.t) |
| 113 | |
| 114 | class HardTanh(object): |
| 115 |
nothing calls this directly
no outgoing calls
no test coverage detected