pub struct TensorDim {
pub size: i64,
pub name: Option<String>,
}Expand description
Data structures for dense tensors Shape data for a single axis in a tensor
Generated from these locations:
- Table
TensorDimin the fileTensor.fbs:30
Fields§
§size: i64Length of dimension
name: Option<String>Name of the dimension, optional
Implementations§
Source§impl TensorDim
impl TensorDim
Sourcepub fn builder() -> TensorDimBuilder<()>
pub fn builder() -> TensorDimBuilder<()>
Creates a TensorDimBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_size: impl WriteAsDefault<i64, i64>, field_name: impl WriteAsOptional<Offset<str>>, ) -> Offset<Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TensorDim
impl<'de> Deserialize<'de> for TensorDim
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 Ord for TensorDim
impl Ord for TensorDim
Source§impl PartialOrd for TensorDim
impl PartialOrd for TensorDim
Source§impl<'a> TryFrom<TensorDimRef<'a>> for TensorDim
impl<'a> TryFrom<TensorDimRef<'a>> for TensorDim
impl Eq for TensorDim
impl StructuralPartialEq for TensorDim
impl VectorWrite<Offset<TensorDim>> for TensorDim
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<TensorDim>> for TensorDim
impl WriteAsOffset<TensorDim> for TensorDim
impl<T0: WriteAsDefault<i64, i64>, T1: WriteAsOptional<Offset<str>>> WriteAsOffset<TensorDim> for TensorDimBuilder<(T0, T1)>
impl WriteAsOptional<Offset<TensorDim>> for TensorDim
Auto Trait Implementations§
impl Freeze for TensorDim
impl RefUnwindSafe for TensorDim
impl Send for TensorDim
impl Sync for TensorDim
impl Unpin for TensorDim
impl UnwindSafe for TensorDim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more