MCPcopy
hub / github.com/black0017/MedicalZooPytorch / ELUCons

Function ELUCons

lib/medzoo/Vnet.py:18–22  ·  view source on GitHub ↗
(elu, nchan)

Source from the content-addressed store, hash-verified

16
17
18def ELUCons(elu, nchan):
19 if elu:
20 return nn.ELU(inplace=True)
21 else:
22 return nn.PReLU(nchan)
23
24
25class LUConv(nn.Module):

Callers 5

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected