Skip to main content

FusionStats

Struct FusionStats 

Source
pub struct FusionStats { /* private fields */ }
Expand description

Runtime-lifetime counters of fusion decisions, decline reasons and JIT admissions.

Implementations§

Source§

impl FusionStats

Source

pub const fn examined_node_count(self) -> u64

Return nodes offered to the elementwise fusion pass.

Every examined node is counted in exactly one node outcome below, so this equals the sum of the *_node_count outcomes other than FusionStats::structural_node_count.

Source

pub const fn disabled_node_count(self) -> u64

Return nodes seen while elementwise fusion was disabled or unavailable.

Source

pub const fn not_elementwise_node_count(self) -> u64

Return nodes outside the fusible elementwise vocabulary.

Includes nodes already replaced by a dedicated structural kernel.

Source

pub const fn policy_excluded_node_count(self) -> u64

Return elementwise nodes excluded by the RL fusion opt-out.

Source

pub const fn hazard_node_count(self) -> u64

Return elementwise nodes whose output is aliased or multiply written.

Source

pub const fn isolated_node_count(self) -> u64

Return elementwise nodes with no admissible elementwise neighbour.

Source

pub const fn extent_boundary_node_count(self) -> u64

Return elementwise nodes separated from neighbours by element count.

Source

pub const fn cross_invocation_node_count(self) -> u64

Return nodes left unfused because a gather or broadcast read needs a materialized producer.

Source

pub const fn program_rejected_node_count(self) -> u64

Return nodes whose candidate program failed construction or validation.

Source

pub const fn foreign_device_node_count(self) -> u64

Return nodes whose buffers belong to another device.

Source

pub const fn tape_bound_node_count(self) -> u64

Return nodes above the tape element bound while specialization is off.

Source

pub const fn tape_capacity_node_count(self) -> u64

Return nodes rejected by tape register, operand, store or step capacity.

Source

pub const fn resource_node_count(self) -> u64

Return nodes left unfused because fusion storage was unavailable.

Source

pub const fn specialization_declined_node_count(self) -> u64

Return nodes above the tape element bound that specialization declined.

Source

pub const fn tape_fused_node_count(self) -> u64

Return nodes fused into tape-interpreter dispatches.

Source

pub const fn specialized_fused_node_count(self) -> u64

Return nodes fused into specialized dispatches.

Source

pub const fn pass_count(self) -> u64

Return completed elementwise fusion passes.

Eager work is fused once per flush and captured work once per capture; plan replay does not run fusion.

Source

pub const fn structural_region_count(self) -> u64

Return dedicated structural replacements made before elementwise fusion.

Source

pub const fn structural_node_count(self) -> u64

Return source nodes absorbed by dedicated structural replacements.

Source

pub const fn tape_region_count(self) -> u64

Return fused tape-interpreter dispatches created.

Source

pub const fn specialized_region_count(self) -> u64

Return fused specialized dispatches created.

Source

pub const fn jit_disabled_count(self) -> u64

Return specialization requests made while OA_JIT_FUSION was unset.

Source

pub const fn jit_admitted_count(self) -> u64

Return requests that admitted a new specialized pipeline.

Source

pub const fn jit_reused_count(self) -> u64

Return requests that reused an admitted specialized pipeline.

Source

pub const fn jit_policy_tape_count(self) -> u64

Return requests where measured route policy selected the tape route.

Source

pub const fn jit_cached_negative_count(self) -> u64

Return requests for a program that already failed admission.

Source

pub const fn jit_bound_count(self) -> u64

Return requests declined because the admission table is full.

Source

pub const fn jit_compiler_unavailable_count(self) -> u64

Return requests declined because the runtime compiler is unavailable.

Source

pub const fn jit_compile_rejected_count(self) -> u64

Return requests rejected by compilation, validation or ABI reflection.

Source

pub const fn jit_pipeline_rejected_count(self) -> u64

Return requests rejected during pipeline preparation.

Source

pub const fn jit_queued_count(self) -> u64

Return programs accepted onto the background compile queue.

Source

pub const fn jit_pending_count(self) -> u64

Return requests that found a background compile still in flight.

Source

pub const fn jit_compile_count(self) -> u64

Return runtime compiler invocations, excluding restored artifacts.

Source

pub const fn jit_compile_ns(self) -> u64

Return host wall time spent in runtime compilation, in nanoseconds.

Source

pub const fn jit_pipeline_ns(self) -> u64

Return host wall time spent creating specialized pipelines, in nanoseconds.

Source

pub const fn dnn_applied_partition_count(self) -> u64

Return captured-plan DNN partitions replaced by a provider route.

Source

pub const fn dnn_fallback_partition_count(self) -> u64

Return captured-plan DNN partitions retained on their source route.

Trait Implementations§

Source§

impl Clone for FusionStats

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FusionStats

Source§

impl Debug for FusionStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FusionStats

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for FusionStats

Stable space-separated key=value record in declaration order.

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for FusionStats

Source§

impl PartialEq for FusionStats

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FusionStats

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

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<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.