Skip to main content

InferenceEngine

Trait InferenceEngine 

Source
pub trait InferenceEngine: Send + Sync {
    // Required methods
    fn predict_duration<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        text_ids: &'life1 TensorValue,
        style_dp: &'life2 TensorValue,
        text_mask: &'life3 TensorValue,
    ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn encode_text<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        text_ids: &'life1 TensorValue,
        style_ttl: &'life2 TensorValue,
        text_mask: &'life3 TensorValue,
    ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn estimate_vector<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>(
        &'life0 self,
        noisy_latent: &'life1 TensorValue,
        text_emb: &'life2 TensorValue,
        style_ttl: &'life3 TensorValue,
        latent_mask: &'life4 TensorValue,
        text_mask: &'life5 TensorValue,
        current_step: &'life6 TensorValue,
        total_step: &'life7 TensorValue,
    ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait,
             'life6: 'async_trait,
             'life7: 'async_trait;
    fn vocode<'life0, 'life1, 'async_trait>(
        &'life0 self,
        latent: &'life1 TensorValue,
    ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn config(&self) -> &Config;
}

Required Methods§

Source

fn predict_duration<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, text_ids: &'life1 TensorValue, style_dp: &'life2 TensorValue, text_mask: &'life3 TensorValue, ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn encode_text<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, text_ids: &'life1 TensorValue, style_ttl: &'life2 TensorValue, text_mask: &'life3 TensorValue, ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn estimate_vector<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>( &'life0 self, noisy_latent: &'life1 TensorValue, text_emb: &'life2 TensorValue, style_ttl: &'life3 TensorValue, latent_mask: &'life4 TensorValue, text_mask: &'life5 TensorValue, current_step: &'life6 TensorValue, total_step: &'life7 TensorValue, ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait, 'life7: 'async_trait,

Source

fn vocode<'life0, 'life1, 'async_trait>( &'life0 self, latent: &'life1 TensorValue, ) -> Pin<Box<dyn Future<Output = Result<TensorValue, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn config(&self) -> &Config

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§