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

Method __init__

lib/activations.py:108–109  ·  view source on GitHub ↗
(self, t=1)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected