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

Class ReplaceVariableCommand

ppq/IR/base/command.py:154–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153
154class ReplaceVariableCommand(GraphCommand):
155 def __init__(self, var_name: str, replace_to: Variable) -> None:
156 super().__init__(command_type=GraphCommandType.REPLACE_VAR)
157 self.op_name = var_name
158 self.replace_to = replace_to
159
160
161class TruncateGraphCommand(GraphCommand):

Callers 1

quantize_operationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected