qat.core.validators module

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.

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 constent enough with type hinting for this.

Return type:

bool