MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / create_act_layer

Function create_act_layer

timm/models/layers/create_act.py:149–153  ·  view source on GitHub ↗
(name: Union[nn.Module, str], inplace=None, **kwargs)

Source from the content-addressed store, hash-verified

147
148
149def create_act_layer(name: Union[nn.Module, str], inplace=None, **kwargs):
150 act_layer = get_act_layer(name)
151 if act_layer is None:
152 return None
153 return act_layer(**kwargs) if inplace is None else act_layer(inplace=inplace, **kwargs)

Callers 11

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

Calls 1

get_act_layerFunction · 0.85

Tested by

no test coverage detected