<reponame>ntyukaev/training_extensions<gh_stars>100-1000
""" This module contains interface for performance providers. """

# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#


import abc

from ote_sdk.entities.metrics import Performance


class IPerformanceProvider(metaclass=abc.ABCMeta):
    """
    Interface for performance provider.
    TODO: subject for refactoring.
    """

    @abc.abstractmethod
    def get_performance(self) -> Performance:
        """
        Returns the computed performance
        """
        raise NotImplementedError

""" This module contains interface for performance providers. """

# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#


import abc

from ote_sdk.entities.metrics import Performance


class IPerformanceProvider(metaclass=abc.ABCMeta):
    """
    Interface for performance provider.
    TODO: subject for refactoring.
    """

    @abc.abstractmethod
    def get_performance(self) -> Performance:
        """
        Returns the computed performance
        """
        raise NotImplementedError
This module contains interface for performance providers. # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # Interface for performance provider.     TODO: subject for refactoring. Returns the computed performance