#[non_exhaustive]pub enum LstmData<'data> {
Float32(LstmDataFloat32<'data>),
}
Expand description
The data to power the LSTM segmentation model.
This data enum is extensible: more backends may be added in the future. Old data can be used with newer code but not vice versa.
Examples of possible future extensions:
- Variant to store data in 16 instead of 32 bits
- Minor changes to the LSTM model, such as different forward/backward matrix sizes
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Float32(LstmDataFloat32<'data>)
The data as matrices of zerovec f32 values.
Trait Implementationsยง
Sourceยงimpl<'de: 'data, 'data> Deserialize<'de> for LstmData<'data>
impl<'de: 'data, 'data> Deserialize<'de> for LstmData<'data>
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 MaybeAsVarULE for LstmData<'_>
impl MaybeAsVarULE for LstmData<'_>
Sourceยงimpl<'a> Yokeable<'a> for LstmData<'static>
impl<'a> Yokeable<'a> for LstmData<'static>
Sourceยงtype Output = LstmData<'a>
type Output = LstmData<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
Sourceยงfn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
impl<'data> StructuralPartialEq for LstmData<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for LstmData<'data>
impl<'data> RefUnwindSafe for LstmData<'data>
impl<'data> Send for LstmData<'data>
impl<'data> Sync for LstmData<'data>
impl<'data> Unpin for LstmData<'data>
impl<'data> UnwindSafe for LstmData<'data>
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<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