pub struct HostTensorOwned {
pub data: Vec<f64>,
pub shape: Vec<usize>,
pub storage: GpuTensorStorage,
}Fields§
§data: Vec<f64>§shape: Vec<usize>§storage: GpuTensorStorageTrait Implementations§
Source§impl Clone for HostTensorOwned
impl Clone for HostTensorOwned
Source§fn clone(&self) -> HostTensorOwned
fn clone(&self) -> HostTensorOwned
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 HostTensorOwned
impl Debug for HostTensorOwned
Source§impl<'de> Deserialize<'de> for HostTensorOwned
impl<'de> Deserialize<'de> for HostTensorOwned
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<'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 PartialEq for HostTensorOwned
impl PartialEq for HostTensorOwned
Source§impl Serialize for HostTensorOwned
impl Serialize for HostTensorOwned
impl StructuralPartialEq for HostTensorOwned
Auto Trait Implementations§
impl Freeze for HostTensorOwned
impl RefUnwindSafe for HostTensorOwned
impl Send for HostTensorOwned
impl Sync for HostTensorOwned
impl Unpin for HostTensorOwned
impl UnsafeUnpin for HostTensorOwned
impl UnwindSafe for HostTensorOwned
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