Skip to content

Inspector

Exceptions for inspectors.

InspectorError

Bases: FedRAGError

Base inspector error for all inspector-related exceptions.

Source code in src/fed_rag/exceptions/inspectors.py
6
7
8
9
class InspectorError(FedRAGError):
    """Base inspector error for all inspector-related exceptions."""

    pass

InspectorWarning

Bases: FedRAGWarning

Base inspector warning for all inspector-related warnings.

Source code in src/fed_rag/exceptions/inspectors.py
class InspectorWarning(FedRAGWarning):
    """Base inspector warning for all inspector-related warnings."""

    pass

MissingNetParam

Bases: InspectorError

Raised if function is missing nn.Module param.

Source code in src/fed_rag/exceptions/inspectors.py
class MissingNetParam(InspectorError):
    """Raised if function is missing nn.Module param."""

    pass

MissingMultipleDataParams

Bases: InspectorError

Raised if multiple data params for training, testing and validation are missing.

Source code in src/fed_rag/exceptions/inspectors.py
class MissingMultipleDataParams(InspectorError):
    """Raised if multiple data params for training, testing and validation are missing."""

    pass

MissingDataParam

Bases: InspectorError

Raised if a single data param is missing.

Source code in src/fed_rag/exceptions/inspectors.py
class MissingDataParam(InspectorError):
    """Raised if a single data param is missing."""

    pass

MissingTrainerSpec

Bases: InspectorError

Raised during inspection if trainer is missing __fl_task_trainer_config attr.

Source code in src/fed_rag/exceptions/inspectors.py
class MissingTrainerSpec(InspectorError):
    """Raised during inspection if trainer is missing `__fl_task_trainer_config` attr."""

    pass

MissingTesterSpec

Bases: InspectorError

Raised during inspection if tester is missing __fl_task_trainer_config attr.

Source code in src/fed_rag/exceptions/inspectors.py
class MissingTesterSpec(InspectorError):
    """Raised during inspection if tester is missing `__fl_task_trainer_config` attr."""

    pass

UnequalNetParamWarning

Bases: InspectorWarning

Thrown if trainer and testers have different parameter names for their nn.Module param.

Source code in src/fed_rag/exceptions/inspectors.py
class UnequalNetParamWarning(InspectorWarning):
    """Thrown if trainer and testers have different parameter names for their nn.Module param."""

    pass

InvalidReturnType

Bases: InspectorError

Raised if the return type of a function is not the expected one.

Source code in src/fed_rag/exceptions/inspectors.py
class InvalidReturnType(InspectorError):
    """Raised if the return type of a function is not the expected one."""

    pass