MCPcopy Create free account
hub / github.com/clab/dynet / __call__

Method __call__

python/model_test.py:49–50  ·  view source on GitHub ↗
(self, in_expr)

Source from the content-addressed store, hash-verified

47 def __init__(self, act):
48 self.act = act
49 def __call__(self, in_expr):
50 return self.act(dy.cmult(in_expr))
51 def get_components(self): return []
52 def restore_components(self,components):pass
53

Callers

nothing calls this directly

Calls 1

actMethod · 0.45

Tested by

no test coverage detected