Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/junyanz/iGAN
/ __init__
Method
__init__
lib/activations.py:60–61 ·
view source on GitHub ↗
(self, leak=0.2)
Source
from the content-addressed store, hash-verified
58
class
LeakyRectify(object):
59
60
def
__init__(self, leak=0.2):
61
self.leak = sharedX(leak)
62
63
def
__call__(self, x):
64
f1 = 0.5 * (1 + self.leak)
Callers
nothing calls this directly
Calls
1
sharedX
Function · 0.90
Tested by
no test coverage detected