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

Method is_same_platform

ppq/quantization/optim/refine.py:178–180  ·  view source on GitHub ↗
(self, operations: List[Operation])

Source from the content-addressed store, hash-verified

176 super().__init__(name='PPQ Quantization Fusion Pass')
177
178 def is_same_platform(self, operations: List[Operation]):
179 platforms = [operation.platform for operation in operations]
180 return all([platform == platforms[0] for platform in platforms])
181
182 @ empty_ppq_cache
183 def optimize(

Callers 1

optimizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected