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

Method to_dict

ppq/core/quant.py:298–306  ·  view source on GitHub ↗

return a dictionary to describe this policy. nothing funny.

(self)

Source from the content-addressed store, hash-verified

296 }
297
298 def to_dict(self) -> dict:
299 """return a dictionary to describe this policy.
300
301 nothing funny.
302 """
303 return {
304 property.name: self.has_property(property)
305 for property in QuantizationProperty
306 }
307
308
309class QuantizationStates(Enum):

Callers 2

Calls 1

has_propertyMethod · 0.95

Tested by

no test coverage detected