#[non_exhaustive]pub struct PassContext {}Expand description
Shared, read-only context threaded through every pass.
Phase-1 minimalism. The design in docs/ORT2.md §18.1 gives this struct
cost_model, ep_registry, and target_devices fields. Those depend on
the onnx-runtime-cost-model and EP-registry crates, which do not exist
yet, and none of the device-independent Phase-1 passes
(DeadNodeElimination,
ConstantFolding, OpFusion)
need them. The context is intentionally empty for now.
It is #[non_exhaustive] so the Phase-2b cost-model / EP-registry /
placement fields can be added without breaking downstream construction.
Implementations§
Source§impl PassContext
impl PassContext
Trait Implementations§
Source§impl Clone for PassContext
impl Clone for PassContext
Source§fn clone(&self) -> PassContext
fn clone(&self) -> PassContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PassContext
impl Debug for PassContext
Source§impl Default for PassContext
impl Default for PassContext
Source§fn default() -> PassContext
fn default() -> PassContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PassContext
impl RefUnwindSafe for PassContext
impl Send for PassContext
impl Sync for PassContext
impl Unpin for PassContext
impl UnsafeUnpin for PassContext
impl UnwindSafe for PassContext
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