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

Method add

ppq/IR/search.py:63–67  ·  view source on GitHub ↗
(self, element: Operation)

Source from the content-addressed store, hash-verified

61 super().__init__()
62
63 def add(self, element: Operation):
64 if not isinstance(element, Operation):
65 raise TypeError('Operation Set can only contains operation instance.')
66 super().add(element)
67 return self
68
69 def __iter__(self) -> Iterator[Operation]:
70 return super().__iter__()

Callers 15

_opset_matchingMethod · 0.95
__init__Method · 0.80
mark_soi_opMethod · 0.80
SOI_receiversFunction · 0.80
SOI_generatorsFunction · 0.80
optimizeMethod · 0.80
optimizeMethod · 0.80
pushMethod · 0.80
exportMethod · 0.80
exportMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected