def get_input_model_metrics(
        self, device: Union[Device, str] = None, execution_provider: Union[ExecutionProvider, str] = None
    ) -> dict[str, Any]:
        """Get the metrics for the input model."""
        device = device or Device.CPU
        execution_provider = execution_provider or ExecutionProvider.CPUExecutionProvider
        input_node = self._all_footprints[AcceleratorSpec(device, execution_provider)].nodes[self._input_model_id]
        return input_node.metrics.value.to_json() if input_node.metrics else None
Get the metrics for the input model.
olive/engine/output.py