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

Method _get_name_prefix

python/singa/layer.py:222–231  ·  view source on GitHub ↗

Get the name prefix Returns: prefix(str): the layer or param name prefix

(self)

Source from the content-addressed store, hash-verified

220 return False
221
222 def _get_name_prefix(self):
223 """ Get the name prefix
224
225 Returns:
226 prefix(str): the layer or param name prefix
227 """
228 if self.name and self._parent:
229 return self.name + Layer.sep
230 else:
231 return ''
232
233 def __getattr__(self, name):
234 if '_layers' in self.__dict__:

Callers 1

__setattr__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected