MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / get

Method get

util/simulator/kernel.py:13–21  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

11 self._cache = {}
12
13 def get(self, name):
14 lastname = name
15 ret = name
16 while ret in self._cache:
17 lastname = ret
18 ret = ret + str(self._cache[ret])
19 self._cache[lastname] += 1
20 self._cache[ret] = 0
21 return ret
22
23
24class Arange:

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected