pub struct VariableShapeTensorMetadata { /* private fields */ }Expand description
Extension type metadata for VariableShapeTensor.
Implementations§
Source§impl VariableShapeTensorMetadata
impl VariableShapeTensorMetadata
Sourcepub fn try_new(
dimensions: usize,
dimension_names: Option<Vec<String>>,
permutations: Option<Vec<usize>>,
uniform_shapes: Option<Vec<Option<i32>>>,
) -> Result<Self, ArrowError>
Available on crate feature canonical_extension_types only.
pub fn try_new( dimensions: usize, dimension_names: Option<Vec<String>>, permutations: Option<Vec<usize>>, uniform_shapes: Option<Vec<Option<i32>>>, ) -> Result<Self, ArrowError>
canonical_extension_types only.Returns metadata for a variable shape tensor extension type.
§Error
Return an error if the provided dimension names, permutations or uniform shapes are invalid.
Sourcepub fn dimension_names(&self) -> Option<&[String]>
Available on crate feature canonical_extension_types only.
pub fn dimension_names(&self) -> Option<&[String]>
canonical_extension_types only.Returns the names of the dimensions in this variable shape tensor, if set.
Sourcepub fn permutations(&self) -> Option<&[usize]>
Available on crate feature canonical_extension_types only.
pub fn permutations(&self) -> Option<&[usize]>
canonical_extension_types only.Returns the indices of the desired ordering of the original dimensions, if set.
Sourcepub fn uniform_shapes(&self) -> Option<&[Option<i32>]>
Available on crate feature canonical_extension_types only.
pub fn uniform_shapes(&self) -> Option<&[Option<i32>]>
canonical_extension_types only.Returns sizes of individual tensor’s dimensions which are guaranteed to stay constant in uniform dimensions and can vary in non-uniform dimensions.
Trait Implementations§
Source§impl Clone for VariableShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl Clone for VariableShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Source§fn clone(&self) -> VariableShapeTensorMetadata
fn clone(&self) -> VariableShapeTensorMetadata
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 VariableShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl Debug for VariableShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Source§impl<'de> Deserialize<'de> for VariableShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl<'de> Deserialize<'de> for VariableShapeTensorMetadata
Available on crate feature
canonical_extension_types only.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 VariableShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl PartialEq for VariableShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Source§impl Serialize for VariableShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl Serialize for VariableShapeTensorMetadata
Available on crate feature
canonical_extension_types only.impl StructuralPartialEq for VariableShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Auto Trait Implementations§
impl Freeze for VariableShapeTensorMetadata
impl RefUnwindSafe for VariableShapeTensorMetadata
impl Send for VariableShapeTensorMetadata
impl Sync for VariableShapeTensorMetadata
impl Unpin for VariableShapeTensorMetadata
impl UnwindSafe for VariableShapeTensorMetadata
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