MCPcopy Create free account
hub / github.com/BVLC/caffe / _get_name

Method _get_name

python/caffe/net_spec.py:121–127  ·  view source on GitHub ↗
(self, names, autonames)

Source from the content-addressed store, hash-verified

119 self.tops = tuple(Top(self, n) for n in range(self.ntop))
120
121 def _get_name(self, names, autonames):
122 if self not in names and self.ntop > 0:
123 names[self] = self._get_top_name(self.tops[0], names, autonames)
124 elif self not in names:
125 autonames[self.type_name] += 1
126 names[self] = self.type_name + str(autonames[self.type_name])
127 return names[self]
128
129 def _get_top_name(self, top, names, autonames):
130 if top not in names:

Callers 1

_to_protoMethod · 0.95

Calls 1

_get_top_nameMethod · 0.95

Tested by

no test coverage detected