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

Class ReplaceOperationCommand

ppq/IR/base/command.py:147–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146
147class ReplaceOperationCommand(GraphCommand):
148 def __init__(self, op_name: str, replace_to: Operation) -> None:
149 super().__init__(command_type=GraphCommandType.REPLACE_OP)
150 self.op_name = op_name
151 self.replace_to = replace_to
152
153
154class ReplaceVariableCommand(GraphCommand):

Callers 1

quantize_operationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected