pub struct ContiguousHint {
pub op: String,
pub axis: Option<usize>,
pub arg: Option<i64>,
}Expand description
Optimization hint carried by CONTIGUOUS ops.
This is a simplified representation of optimizer hints that can be
converted to/from the full Opt type in the schedule crate.
Keeps the IR layer decoupled from optimizer-specific types.
Based on Tinygrad’s CONTIGUOUS.arg which carries Opt tuples.
Fields§
§op: StringOperation name (e.g., “UPCAST”, “LOCAL”, “UNROLL”)
axis: Option<usize>Target axis index (if applicable)
arg: Option<i64>Integer argument (amount, size, etc.)
Trait Implementations§
Source§impl Clone for ContiguousHint
impl Clone for ContiguousHint
Source§fn clone(&self) -> ContiguousHint
fn clone(&self) -> ContiguousHint
Returns a duplicate of the value. Read more
1.0.0 · 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 ContiguousHint
impl Debug for ContiguousHint
Source§impl<'de> Deserialize<'de> for ContiguousHint
impl<'de> Deserialize<'de> for ContiguousHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ContiguousHint
impl Hash for ContiguousHint
Source§impl PartialEq for ContiguousHint
impl PartialEq for ContiguousHint
Source§impl Serialize for ContiguousHint
impl Serialize for ContiguousHint
impl Eq for ContiguousHint
impl StructuralPartialEq for ContiguousHint
Auto Trait Implementations§
impl Freeze for ContiguousHint
impl RefUnwindSafe for ContiguousHint
impl Send for ContiguousHint
impl Sync for ContiguousHint
impl Unpin for ContiguousHint
impl UnsafeUnpin for ContiguousHint
impl UnwindSafe for ContiguousHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.