Trait chat_flame_backend::llm::model_processor::ModelProcessor
source · pub trait ModelProcessor {
// Required method
fn forward(&mut self, x: &Tensor, index_pos: usize) -> Result<Tensor>;
}
Expand description
A trait for processing model inputs and generating outputs.
This trait defines a method for processing input tensors through a model and generating output tensors.
Required Methods§
Implementors§
impl ModelProcessor for Model
impl ModelProcessor for DummyModelProcessor
Implementation of ModelProcessor
for DummyModelProcessor
.