pub struct SimpleModelBuilder;Expand description
Simple model builder - MVP implementation
Trait Implementations§
Source§impl Debug for SimpleModelBuilder
impl Debug for SimpleModelBuilder
Source§impl Default for SimpleModelBuilder
impl Default for SimpleModelBuilder
Source§fn default() -> SimpleModelBuilder
fn default() -> SimpleModelBuilder
Returns the “default value” for a type. Read more
Source§impl ModelBuilder for SimpleModelBuilder
impl ModelBuilder for SimpleModelBuilder
Source§fn build_model<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ModelConfig,
compute_backend: Arc<dyn ComputeBackend>,
_weight_loader: Arc<dyn WeightLoader>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ModelExecutor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn build_model<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ModelConfig,
compute_backend: Arc<dyn ComputeBackend>,
_weight_loader: Arc<dyn WeightLoader>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ModelExecutor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Build model executor from configuration
Source§fn build_from_source<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source: &'life1 ModelSource,
compute_backend: Arc<dyn ComputeBackend>,
_weight_loader: Arc<dyn WeightLoader>,
_build_options: &'life2 BuildOptions,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ModelExecutor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn build_from_source<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source: &'life1 ModelSource,
compute_backend: Arc<dyn ComputeBackend>,
_weight_loader: Arc<dyn WeightLoader>,
_build_options: &'life2 BuildOptions,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ModelExecutor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Build model executor from model source
Source§fn validate_config(&self, config: &ModelConfig) -> Result<Vec<ValidationIssue>>
fn validate_config(&self, config: &ModelConfig) -> Result<Vec<ValidationIssue>>
Validate model configuration
Source§fn supported_model_types(&self) -> Vec<ModelType>
fn supported_model_types(&self) -> Vec<ModelType>
Get supported model types
Source§fn estimate_build_time<'life0, 'life1, 'async_trait>(
&'life0 self,
_config: &'life1 ModelConfig,
) -> Pin<Box<dyn Future<Output = Result<BuildTimeEstimate>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn estimate_build_time<'life0, 'life1, 'async_trait>(
&'life0 self,
_config: &'life1 ModelConfig,
) -> Pin<Box<dyn Future<Output = Result<BuildTimeEstimate>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get estimated build time
Source§fn builder_info(&self) -> BuilderInfo
fn builder_info(&self) -> BuilderInfo
Get builder information
Auto Trait Implementations§
impl Freeze for SimpleModelBuilder
impl RefUnwindSafe for SimpleModelBuilder
impl Send for SimpleModelBuilder
impl Sync for SimpleModelBuilder
impl Unpin for SimpleModelBuilder
impl UnsafeUnpin for SimpleModelBuilder
impl UnwindSafe for SimpleModelBuilder
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