Skip to main content

CompiledPartition

Struct CompiledPartition 

Source
pub struct CompiledPartition<'a> {
    pub ep: &'a dyn ExecutionProvider,
    pub partition_name: String,
    pub covered_nodes: Vec<NodeId>,
}
Expand description

One compiled partition the session hands to the EPContext writer (§55.4).

The session owns compilation and partition boundaries; it names the owning EP and the graph nodes that EP compiled. The driver (dump_session_ep_context) pulls the compiled blob + SDK version from the EP via ExecutionProvider::save_context and the source key from ExecutionProvider::context_source_keys — nothing is hardcoded (§55.6).

Fields§

§ep: &'a dyn ExecutionProvider

The EP that compiled this partition (and owns its context).

§partition_name: String

The ORT-partition name emitted as the node’s partition_name attribute.

§covered_nodes: Vec<NodeId>

The graph nodes this partition covers (replaced by one EPContext node).

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for CompiledPartition<'a>

§

impl<'a> !UnwindSafe for CompiledPartition<'a>

§

impl<'a> Freeze for CompiledPartition<'a>

§

impl<'a> Send for CompiledPartition<'a>

§

impl<'a> Sync for CompiledPartition<'a>

§

impl<'a> Unpin for CompiledPartition<'a>

§

impl<'a> UnsafeUnpin for CompiledPartition<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.