pub struct SelectAssignOpIr {
pub tensor: TensorIr,
pub dim: usize,
pub indices: TensorIr,
pub value: TensorIr,
pub update: IndexingUpdateOp,
pub out: TensorIr,
}Fields§
§tensor: TensorIr§dim: usize§indices: TensorIr§value: TensorIr§update: IndexingUpdateOp§out: TensorIrImplementations§
Source§impl SelectAssignOpIr
impl SelectAssignOpIr
Sourcepub fn create(
tensor: TensorIr,
dim: usize,
indices: TensorIr,
value: TensorIr,
update: IndexingUpdateOp,
new_id: impl FnOnce() -> TensorId,
) -> SelectAssignOpIr
pub fn create( tensor: TensorIr, dim: usize, indices: TensorIr, value: TensorIr, update: IndexingUpdateOp, new_id: impl FnOnce() -> TensorId, ) -> SelectAssignOpIr
Create a new operation IR from the given inputs.
new_id should generate a unique TensorId for the uninitialized output tensor.
Trait Implementations§
Source§impl Clone for SelectAssignOpIr
impl Clone for SelectAssignOpIr
Source§fn clone(&self) -> SelectAssignOpIr
fn clone(&self) -> SelectAssignOpIr
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 SelectAssignOpIr
impl Debug for SelectAssignOpIr
Source§impl<'de> Deserialize<'de> for SelectAssignOpIr
impl<'de> Deserialize<'de> for SelectAssignOpIr
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 SelectAssignOpIr
impl Hash for SelectAssignOpIr
Source§impl PartialEq for SelectAssignOpIr
impl PartialEq for SelectAssignOpIr
Source§impl Serialize for SelectAssignOpIr
impl Serialize for SelectAssignOpIr
impl StructuralPartialEq for SelectAssignOpIr
Auto Trait Implementations§
impl Freeze for SelectAssignOpIr
impl RefUnwindSafe for SelectAssignOpIr
impl Send for SelectAssignOpIr
impl Sync for SelectAssignOpIr
impl Unpin for SelectAssignOpIr
impl UnwindSafe for SelectAssignOpIr
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