MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / _act

Function _act

preprocess/auxiliary/AutoShot.py:56–66  ·  view source on GitHub ↗
(act_type, **kwargs)

Source from the content-addressed store, hash-verified

54 return inputs
55
56def _act(act_type, **kwargs):
57 if act_type is None or act_type == "Identity":
58 return Identity_()
59 elif act_type == "ReLU":
60 result = nn.ReLU(inplace=True)
61 return result
62 else:
63 raise Exception("Not implemented !!!")
64
65
66 raise Exception("_act: Go here ..., maybe don\'t define some act")
67
68
69

Callers 1

__init__Method · 0.85

Calls 1

Identity_Class · 0.85

Tested by

no test coverage detected