pub enum LayerPositionConstraint {
StartOnly,
EndOnly,
Body,
Any,
}Expand description
Position constraints for layer types within an ASR architecture.
Variants§
StartOnly
Layer must appear at the start of the model
(e.g. SpeechLayerType::MelFilterBank).
EndOnly
Layer must appear at the end of the model
(e.g. SpeechLayerType::CTCDecoder).
Body
Layer can appear anywhere except start/end (reserved for future use).
Any
Layer can appear anywhere in the model.
Trait Implementations§
Source§impl Clone for LayerPositionConstraint
impl Clone for LayerPositionConstraint
impl Copy for LayerPositionConstraint
Source§impl Debug for LayerPositionConstraint
impl Debug for LayerPositionConstraint
Source§impl<'de> Deserialize<'de> for LayerPositionConstraint
impl<'de> Deserialize<'de> for LayerPositionConstraint
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 LayerPositionConstraint
Source§impl PartialEq for LayerPositionConstraint
impl PartialEq for LayerPositionConstraint
Source§impl Serialize for LayerPositionConstraint
impl Serialize for LayerPositionConstraint
impl StructuralPartialEq for LayerPositionConstraint
Auto Trait Implementations§
impl Freeze for LayerPositionConstraint
impl RefUnwindSafe for LayerPositionConstraint
impl Send for LayerPositionConstraint
impl Sync for LayerPositionConstraint
impl Unpin for LayerPositionConstraint
impl UnsafeUnpin for LayerPositionConstraint
impl UnwindSafe for LayerPositionConstraint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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