pub struct DimOpIr {
pub input: TensorIr,
pub out: TensorIr,
pub axis: usize,
}Expand description
IR for operations that operate along a dimension without reducing it.
Unlike ReduceDimOpIr, the output shape is the same as the input shape.
Fields§
§input: TensorIr§out: TensorIr§axis: usizeImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DimOpIr
impl<'de> Deserialize<'de> for DimOpIr
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 DimOpIr
Auto Trait Implementations§
impl Freeze for DimOpIr
impl RefUnwindSafe for DimOpIr
impl Send for DimOpIr
impl Sync for DimOpIr
impl Unpin for DimOpIr
impl UnwindSafe for DimOpIr
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