Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Newmu/dcgan_code
/ Rectify
Class
Rectify
lib/activations.py:36–42 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
return
x
35
36
class
Rectify(object):
37
38
def
__init__(self):
39
pass
40
41
def
__call__(self, x):
42
return
(x + abs(x)) / 2.0
43
44
class
ClippedRectify(object):
45
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected