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

Class GraphCommand

ppq/IR/base/command.py:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 REMOVE_IDENTITY = 35
113
114class GraphCommand():
115 def __init__(self, command_type: GraphCommandType, **kwargs) -> None:
116 assert isinstance(command_type, GraphCommandType), \
117 f'Command Type must be a GraphCommandType object, but {type(command_type)} received.'
118 self.command_type = command_type
119 self.kwargs = kwargs
120
121 def __str__(self) -> str:
122 return f'GraphCommand object {self.__hash__()},\t Command type: {self.command_type},\t Args:{self.kwargs}'
123
124
125class GraphDeployCommand(GraphCommand):

Callers 2

infer_shapeMethod · 0.90
format_graphFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected