Struct cubecl_core::ir::IndexOffsetGlobalWithLayout
source · pub struct IndexOffsetGlobalWithLayout {
pub tensors: Vec<Variable>,
pub indexes: Vec<Variable>,
pub layout: Variable,
pub position: Variable,
pub dim_start: Variable,
pub dim_end: Variable,
}
Expand description
Calculate the index offset for all tensor variables provided compatible with the given layout.
Fields§
§tensors: Vec<Variable>
§indexes: Vec<Variable>
Offsets that are going to be written to.
layout: Variable
Reference layout.
position: Variable
Position index that corresponds to the reference layout.
All other indexes will be made to be compatible with this one.
dim_start: Variable
§dim_end: Variable
Implementations§
Trait Implementations§
source§impl Clone for IndexOffsetGlobalWithLayout
impl Clone for IndexOffsetGlobalWithLayout
source§fn clone(&self) -> IndexOffsetGlobalWithLayout
fn clone(&self) -> IndexOffsetGlobalWithLayout
Returns a copy 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 IndexOffsetGlobalWithLayout
impl Debug for IndexOffsetGlobalWithLayout
source§impl<'de> Deserialize<'de> for IndexOffsetGlobalWithLayout
impl<'de> Deserialize<'de> for IndexOffsetGlobalWithLayout
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
impl StructuralPartialEq for IndexOffsetGlobalWithLayout
Auto Trait Implementations§
impl Freeze for IndexOffsetGlobalWithLayout
impl RefUnwindSafe for IndexOffsetGlobalWithLayout
impl Send for IndexOffsetGlobalWithLayout
impl Sync for IndexOffsetGlobalWithLayout
impl Unpin for IndexOffsetGlobalWithLayout
impl UnwindSafe for IndexOffsetGlobalWithLayout
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)