pub struct MultiModalPipeline { /* private fields */ }Expand description
Multi-modal inference pipeline
Implementations§
Source§impl MultiModalPipeline
impl MultiModalPipeline
Sourcepub fn builder() -> MultiModalPipelineBuilder
pub fn builder() -> MultiModalPipelineBuilder
Create a new builder
Sourcepub fn forward(
&mut self,
inputs: &[(ModalityType, Array1<f32>)],
) -> InferenceResult<Array1<f32>>
pub fn forward( &mut self, inputs: &[(ModalityType, Array1<f32>)], ) -> InferenceResult<Array1<f32>>
Sourcepub fn fusion_strategy(&self) -> FusionStrategy
pub fn fusion_strategy(&self) -> FusionStrategy
Get the fusion strategy
Sourcepub fn modalities(&self) -> &HashMap<ModalityType, ModalityConfig>
pub fn modalities(&self) -> &HashMap<ModalityType, ModalityConfig>
Get modality configurations
Sourcepub fn engine(&self) -> &InferenceEngine
pub fn engine(&self) -> &InferenceEngine
Get the underlying engine
Sourcepub fn engine_mut(&mut self) -> &mut InferenceEngine
pub fn engine_mut(&mut self) -> &mut InferenceEngine
Get mutable access to the engine
Auto Trait Implementations§
impl Freeze for MultiModalPipeline
impl !RefUnwindSafe for MultiModalPipeline
impl Send for MultiModalPipeline
impl !Sync for MultiModalPipeline
impl Unpin for MultiModalPipeline
impl !UnwindSafe for MultiModalPipeline
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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