pub struct HostNumericTensorView<'a> {
pub data: HostNumericDataView<'a>,
pub shape: &'a [usize],
pub storage: GpuTensorStorage,
}Expand description
Borrowed tensor transfer with one native numeric payload and explicit real/complex layout.
Fields§
§data: HostNumericDataView<'a>§shape: &'a [usize]§storage: GpuTensorStorageImplementations§
Source§impl HostNumericTensorView<'_>
impl HostNumericTensorView<'_>
pub fn validate(self) -> Result<()>
pub const fn element_type(self) -> NumericElementType
Trait Implementations§
Source§impl<'a> Clone for HostNumericTensorView<'a>
impl<'a> Clone for HostNumericTensorView<'a>
Source§fn clone(&self) -> HostNumericTensorView<'a>
fn clone(&self) -> HostNumericTensorView<'a>
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 moreimpl<'a> Copy for HostNumericTensorView<'a>
Source§impl<'a> Debug for HostNumericTensorView<'a>
impl<'a> Debug for HostNumericTensorView<'a>
Source§impl<'a> From<&'a HostTensorOwned> for HostNumericTensorView<'a>
impl<'a> From<&'a HostTensorOwned> for HostNumericTensorView<'a>
Source§fn from(value: &'a HostTensorOwned) -> Self
fn from(value: &'a HostTensorOwned) -> Self
Converts to this type from the input type.
Source§impl<'a> From<HostIntegerTensorView<'a>> for HostNumericTensorView<'a>
impl<'a> From<HostIntegerTensorView<'a>> for HostNumericTensorView<'a>
Source§fn from(value: HostIntegerTensorView<'a>) -> Self
fn from(value: HostIntegerTensorView<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<HostTensorView<'a>> for HostNumericTensorView<'a>
impl<'a> From<HostTensorView<'a>> for HostNumericTensorView<'a>
Source§fn from(value: HostTensorView<'a>) -> Self
fn from(value: HostTensorView<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for HostNumericTensorView<'a>
impl<'a> RefUnwindSafe for HostNumericTensorView<'a>
impl<'a> Send for HostNumericTensorView<'a>
impl<'a> Sync for HostNumericTensorView<'a>
impl<'a> Unpin for HostNumericTensorView<'a>
impl<'a> UnsafeUnpin for HostNumericTensorView<'a>
impl<'a> UnwindSafe for HostNumericTensorView<'a>
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