MCPcopy Create free account
hub / github.com/apache/singa / forward_wrapper

Method forward_wrapper

python/singa/layer.py:55–64  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

53 return wrapper
54
55 def forward_wrapper(func):
56
57 @wraps(func)
58 def wrapper(self, *args, **kwargs):
59 if not self._initialized:
60 self.initialize(*args, **kwargs)
61 self._initialized = True
62 return func(self, *args, **kwargs)
63
64 return wrapper
65
66 def __new__(cls, name, bases, attr):
67 if 'initialize' in attr:

Callers 1

__new__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected