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

Method __init__

lib/activations.py:38–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36class Rectify(object):
37
38 def __init__(self):
39 pass
40
41 def __call__(self, x):
42 return (x + abs(x)) / 2.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected