Class Policy¶
Defined in File policy.hpp
Class Documentation¶
-
class Policy¶
Policies are factories that construct Pipelines.
A Policy encodes what should happen (control flow, fallback strategy), while the Pipeline and Actions encode how it happens.
Public Functions
-
virtual ~Policy() = default¶
-
virtual Pipeline makePipeline(const ml::InferenceModel *Model, LayoutTransform &Layout) const = 0¶
Construct a pipeline for the given model and layout. The, potentially nullable, Model is a non-owning pointer.
The returned Pipeline is ready to run.
-
virtual const char *name() const noexcept = 0¶
-
virtual ~Policy() = default¶