pub struct TensorRepr {
pub requires_grad: bool,
pub device: Device,
pub shape: Vec<i64>,
pub kind: Kind,
pub data: Vec<u8>,
}
Expand description
Fields§
§requires_grad: bool
§device: Device
§shape: Vec<i64>
§kind: Kind
§data: Vec<u8>
Trait Implementations§
Source§impl Clone for TensorRepr
impl Clone for TensorRepr
Source§fn clone(&self) -> TensorRepr
fn clone(&self) -> TensorRepr
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 TensorRepr
impl Debug for TensorRepr
Source§impl<'de> Deserialize<'de> for TensorRepr
impl<'de> Deserialize<'de> for TensorRepr
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 TensorRepr
impl PartialEq for TensorRepr
Source§impl Serialize for TensorRepr
impl Serialize for TensorRepr
impl Eq for TensorRepr
impl StructuralPartialEq for TensorRepr
Auto Trait Implementations§
impl Freeze for TensorRepr
impl RefUnwindSafe for TensorRepr
impl Send for TensorRepr
impl Sync for TensorRepr
impl Unpin for TensorRepr
impl UnwindSafe for TensorRepr
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