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

Method __init__

lib/activations.py:46–47  ·  view source on GitHub ↗
(self, clip=10.)

Source from the content-addressed store, hash-verified

44class 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected