pub struct ExecutionPlanTarget<B: ModelLoadingBackend> { /* private fields */ }Expand description
One target-backend instance and load policy realized from a portable execution plan.
The backend owns its selected device, execution queues, transfer queues, and optional communication state. Callers pass this value directly to the generic model loader instead of reconstructing backend-specific options.
Implementations§
Source§impl<B: ModelLoadingBackend> ExecutionPlanTarget<B>
impl<B: ModelLoadingBackend> ExecutionPlanTarget<B>
Sourcepub fn new(backend: B, load_options: B::LoadOptions) -> Self
pub fn new(backend: B, load_options: B::LoadOptions) -> Self
Creates one backend-owned realization.
Backend adapters call this from ExecutionPlanBackendFactory::realize_target.
Portable identity, device, capability, and plan validation is applied by
realize_execution_plan_target before the value reaches an application.
Sourcepub fn into_parts(self) -> (B, B::LoadOptions)
pub fn into_parts(self) -> (B, B::LoadOptions)
Consumes the realization into the generic loader inputs.
Auto Trait Implementations§
impl<B> Freeze for ExecutionPlanTarget<B>
impl<B> RefUnwindSafe for ExecutionPlanTarget<B>
impl<B> Send for ExecutionPlanTarget<B>
impl<B> Sync for ExecutionPlanTarget<B>
impl<B> Unpin for ExecutionPlanTarget<B>
impl<B> UnsafeUnpin for ExecutionPlanTarget<B>
impl<B> UnwindSafe for ExecutionPlanTarget<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more