Skip to content

Method _ap__assert_platspec

abstract protected

Checks the validity of the values ​​of the inference platform fields
specified by descendants of this abstract class.

If validation is successful, this operation should be equivalent to a no-op.

Details

Signature

    def _ap__assert_platspec(config_dict: Dict[str, Any]) -> Dict[str, Any]

Guarantees

When this entity is called it is already guaranteed:

  • That all mandatory fields, not specific to the inference platform, exist and are semantically correct.

  • That optional fields, which do exist but are not specific to the inference platform, are semantically correct.


Parameters

  • config_dict (Dict[str, Any]):

    An any-type, string-indexed dictionary representing the read configuration file

Return Type

This entity doesn't return any value


Exceptions

Raised Exceptions

  • ValueError, happens if:

    • The semantics of one or more fields are correct but a specific platform error exists, declared by the descendants of this its class.