def get_output_models(self) -> list[ModelOutput]:
        """Get all model outputs from the workflow sorted by metrics.

        Returns:
            List of ModelOutput objects

        """
        output_models = [
            model for acc_output in self._device_outputs.values() for model in acc_output.get_output_models()
        ]
        return self._sort_by_metrics(output_models, self._objective_dict)
Get all model outputs from the workflow sorted by metrics.

        Returns:
            List of ModelOutput objects

        
olive/engine/output.py