pub struct OptimizationHints(/* private fields */);Expand description
Numerically safe and provider-conditional lowering opportunities.
Implementations§
Source§impl OptimizationHints
impl OptimizationHints
pub const NONE: Self
Sourcepub const DEAD: Self
pub const DEAD: Self
The operator and its pure dependency chain do not contribute to block outputs.
Sourcepub const ALIAS_INPUT_ZERO: Self
pub const ALIAS_INPUT_ZERO: Self
Output storage may alias input zero when the provider supports internal views.
Sourcepub const FOLD_CONSTANT: Self
pub const FOLD_CONSTANT: Self
All inputs are constant and bounded by AnalysisOptions::max_folded_constant_bytes.
Sourcepub const COMPOSE_RESHAPE: Self
pub const COMPOSE_RESHAPE: Self
A preceding single-use reshape can be composed without changing tensor values.
Sourcepub const COMPOSE_TRANSPOSE: Self
pub const COMPOSE_TRANSPOSE: Self
A preceding single-use transpose can be composed by combining permutations.
Sourcepub const CONTROL_FLOW: Self
pub const CONTROL_FLOW: Self
Provider control-flow lowering is required.
pub const fn contains(self, other: Self) -> bool
Trait Implementations§
Source§impl Clone for OptimizationHints
impl Clone for OptimizationHints
Source§fn clone(&self) -> OptimizationHints
fn clone(&self) -> OptimizationHints
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 moreimpl Copy for OptimizationHints
Source§impl Debug for OptimizationHints
impl Debug for OptimizationHints
Source§impl Default for OptimizationHints
impl Default for OptimizationHints
Source§fn default() -> OptimizationHints
fn default() -> OptimizationHints
Returns the “default value” for a type. Read more
impl Eq for OptimizationHints
Source§impl PartialEq for OptimizationHints
impl PartialEq for OptimizationHints
Source§fn eq(&self, other: &OptimizationHints) -> bool
fn eq(&self, other: &OptimizationHints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptimizationHints
Auto Trait Implementations§
impl Freeze for OptimizationHints
impl RefUnwindSafe for OptimizationHints
impl Send for OptimizationHints
impl Sync for OptimizationHints
impl Unpin for OptimizationHints
impl UnsafeUnpin for OptimizationHints
impl UnwindSafe for OptimizationHints
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