MCPcopy Create free account
hub / github.com/Newmu/dcgan_code / TRec

Class TRec

lib/activations.py:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 return T.clip(X + 0.5, 0., 1.)
105
106class 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
114class HardTanh(object):
115

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected