pub struct TensorDescriptor {
pub name: String,
pub shape: Vec<usize>,
pub dtype: TensorDtype,
pub storage: Option<TensorStorage>,
}Expand description
Tensor descriptor without a materialized runtime array.
Fields§
§name: StringCanonical checkpoint name.
shape: Vec<usize>Row-major logical shape.
dtype: TensorDtypeLogical or encoded dtype.
storage: Option<TensorStorage>Optional source location.
Trait Implementations§
Source§impl Clone for TensorDescriptor
impl Clone for TensorDescriptor
Source§fn clone(&self) -> TensorDescriptor
fn clone(&self) -> TensorDescriptor
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 TensorDescriptor
impl Debug for TensorDescriptor
Source§impl<'de> Deserialize<'de> for TensorDescriptor
impl<'de> Deserialize<'de> for TensorDescriptor
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
impl Eq for TensorDescriptor
Source§impl PartialEq for TensorDescriptor
impl PartialEq for TensorDescriptor
Source§impl Serialize for TensorDescriptor
impl Serialize for TensorDescriptor
impl StructuralPartialEq for TensorDescriptor
Auto Trait Implementations§
impl Freeze for TensorDescriptor
impl RefUnwindSafe for TensorDescriptor
impl Send for TensorDescriptor
impl Sync for TensorDescriptor
impl Unpin for TensorDescriptor
impl UnsafeUnpin for TensorDescriptor
impl UnwindSafe for TensorDescriptor
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