pub struct InterventionTensor {
pub shape: Vec<u64>,
pub values: InterventionValues,
}Expand description
Complete typed tensor with exact selected extents; broadcasting is prohibited.
Fields§
§shape: Vec<u64>Row-major extents, including all selected singleton axes.
values: InterventionValuesComplete values in the exact target dtype.
Trait Implementations§
Source§impl Clone for InterventionTensor
impl Clone for InterventionTensor
Source§fn clone(&self) -> InterventionTensor
fn clone(&self) -> InterventionTensor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InterventionTensor
impl Debug for InterventionTensor
Source§impl<'de> Deserialize<'de> for InterventionTensor
impl<'de> Deserialize<'de> for InterventionTensor
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 InterventionTensor
impl PartialEq for InterventionTensor
Source§impl Serialize for InterventionTensor
impl Serialize for InterventionTensor
impl StructuralPartialEq for InterventionTensor
Auto Trait Implementations§
impl Freeze for InterventionTensor
impl RefUnwindSafe for InterventionTensor
impl Send for InterventionTensor
impl Sync for InterventionTensor
impl Unpin for InterventionTensor
impl UnsafeUnpin for InterventionTensor
impl UnwindSafe for InterventionTensor
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