MCPcopy
hub / github.com/OpenPPL/ppq / push

Method push

ppq/quantization/algorithm/training.py:162–166  ·  view source on GitHub ↗
(self, depth: int, op: Operation)

Source from the content-addressed store, hash-verified

160 return ele
161
162 def push(self, depth: int, op: Operation):
163 if op in self._ops: return
164 self._data.append((depth, op))
165 self._ops.add(op)
166 self._lazy_tag = False
167
168 def empty(self) -> bool:
169 return self._idx >= len(self._data)

Callers 5

_find_multi_input_epMethod · 0.95
checkMethod · 0.45
__init__Method · 0.45
markMethod · 0.45

Calls 2

addMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected