qat.core.config.validators module
- exception MismatchingHardwareModelException
Bases:
Exception
- is_backend(value)
A validator which raises when the input not a Backend.
- is_engine(value)
A validator which raises when the input not an Engine.
This permits NativeEngines and (legacy qat.purr) InstructionExecutionEngine. In future we intend to only accept NativeEngines (once qat.purr is deprecated)
- is_frontend(value)
A validator which raises when the input not a Frontend.
- is_hardwareloader(value)
A validator which raises when the input not a model loader.
- is_middleend(value)
A validator which raises when the input not a Middleend.
- is_passmanager(value)
A validator which raises when the input not an PassManager.
- is_passmanager_factory(value)
A validator which raises when the input not function which returns a PassManager.
- is_pipeline_factory(value)
A validator which raises when the input not function which returns a Pipeline.
- is_pipeline_instance(value)
A validator which raises when the input not a Pipeline instance.
- is_runtime(value)
A validator which raises when the input not a Runtime.
- is_target_data(value)
A validator which raises when the input not a TargetData. Allows both TargetData classes and functions which return TargetData instances.
- is_updateable_pipeline(value)
A validator which raises when the input not an UpdateablePipeline instance.
- requires_model(value)
Determines whether a class or function expects a model
In future we will also inspect the type is a hardware model but currently we are not consistent enough with type hinting for this.
- Return type:
bool
- requires_target_data(value)
Determines whether a class or function expects target data.
In future we will also inspect the type is a target data but currently we are not consistent enough with type hinting for this.
- Return type:
bool