neural_compressor.experimental.common.metric ============================================ .. py:module:: neural_compressor.experimental.common.metric .. autoapi-nested-parse:: Common Metric just collects the information to construct a Metric. Classes ------- .. autoapisummary:: neural_compressor.experimental.common.metric.Metric Module Contents --------------- .. py:class:: Metric(metric_cls, name='user_metric', **kwargs) A wrapper of the information needed to construct a Metric. The metric class should take the outputs of the model as the metric's inputs, neural_compressor built-in metric always take (predictions, labels) as inputs, it's recommended to design metric_cls to take (predictions, labels) as inputs.