pub trait ModelInterface: Sized {
    type Fact: FactInterface;
    type Runnable: RunnableInterface;
    type Value: ValueInterface;

Show 20 methods // Required methods fn input_count(&self) -> Result<usize>; fn output_count(&self) -> Result<usize>; fn input_name(&self, id: usize) -> Result<String>; fn output_name(&self, id: usize) -> Result<String>; fn set_output_names( &mut self, outputs: impl IntoIterator<Item = impl AsRef<str>> ) -> Result<()>; fn input_fact(&self, id: usize) -> Result<Self::Fact>; fn output_fact(&self, id: usize) -> Result<Self::Fact>; fn declutter(&mut self) -> Result<()>; fn optimize(&mut self) -> Result<()>; fn into_decluttered(self) -> Result<Self>; fn into_optimized(self) -> Result<Self>; fn into_runnable(self) -> Result<Self::Runnable>; fn concretize_symbols( &mut self, values: impl IntoIterator<Item = (impl AsRef<str>, i64)> ) -> Result<()>; fn f32_to_f16(&mut self) -> Result<()>; fn f16_to_f32(&mut self) -> Result<()>; fn pulse( &mut self, name: impl AsRef<str>, value: impl AsRef<str> ) -> Result<()>; fn cost_json(&self) -> Result<String>; fn profile_json<I, V, E>(&self, inputs: Option<I>) -> Result<String> where I: IntoIterator<Item = V>, V: TryInto<Self::Value, Error = E>, E: Into<Error> + Debug; fn property_keys(&self) -> Result<Vec<String>>; fn property(&self, name: impl AsRef<str>) -> Result<Self::Value>;
}

Required Associated Types§

Required Methods§

source

fn input_count(&self) -> Result<usize>

source

fn output_count(&self) -> Result<usize>

source

fn input_name(&self, id: usize) -> Result<String>

source

fn output_name(&self, id: usize) -> Result<String>

source

fn set_output_names( &mut self, outputs: impl IntoIterator<Item = impl AsRef<str>> ) -> Result<()>

source

fn input_fact(&self, id: usize) -> Result<Self::Fact>

source

fn output_fact(&self, id: usize) -> Result<Self::Fact>

source

fn declutter(&mut self) -> Result<()>

source

fn optimize(&mut self) -> Result<()>

source

fn into_decluttered(self) -> Result<Self>

source

fn into_optimized(self) -> Result<Self>

source

fn into_runnable(self) -> Result<Self::Runnable>

source

fn concretize_symbols( &mut self, values: impl IntoIterator<Item = (impl AsRef<str>, i64)> ) -> Result<()>

source

fn f32_to_f16(&mut self) -> Result<()>

source

fn f16_to_f32(&mut self) -> Result<()>

source

fn pulse(&mut self, name: impl AsRef<str>, value: impl AsRef<str>) -> Result<()>

source

fn cost_json(&self) -> Result<String>

source

fn profile_json<I, V, E>(&self, inputs: Option<I>) -> Result<String>
where I: IntoIterator<Item = V>, V: TryInto<Self::Value, Error = E>, E: Into<Error> + Debug,

source

fn property_keys(&self) -> Result<Vec<String>>

source

fn property(&self, name: impl AsRef<str>) -> Result<Self::Value>

Object Safety§

This trait is not object safe.

Implementors§