pub struct ConstantInfo {
pub tensor_idx: usize,
pub is_compile_time_constant: bool,
pub is_identity: bool,
pub is_zero: bool,
}Expand description
Information about a constant tensor.
Fields§
§tensor_idx: usizeTensor index
is_compile_time_constant: boolWhether the value is known at compile time
is_identity: boolWhether the value is an identity (e.g., 1 for multiplication)
is_zero: boolWhether the value is zero/absorbing
Trait Implementations§
Source§impl Clone for ConstantInfo
impl Clone for ConstantInfo
Source§fn clone(&self) -> ConstantInfo
fn clone(&self) -> ConstantInfo
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 ConstantInfo
impl Debug for ConstantInfo
Source§impl<'de> Deserialize<'de> for ConstantInfo
impl<'de> Deserialize<'de> for ConstantInfo
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 PartialEq for ConstantInfo
impl PartialEq for ConstantInfo
Source§impl Serialize for ConstantInfo
impl Serialize for ConstantInfo
impl StructuralPartialEq for ConstantInfo
Auto Trait Implementations§
impl Freeze for ConstantInfo
impl RefUnwindSafe for ConstantInfo
impl Send for ConstantInfo
impl Sync for ConstantInfo
impl Unpin for ConstantInfo
impl UnwindSafe for ConstantInfo
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