pub enum InferenceOutputs {
Text(Vec<String>),
Vectors(Vec<Vec<f32>>),
Scores(Vec<f64>),
}Expand description
Per-row outputs of a batch. Homogeneous for a given request: a classify or generate batch yields text; an embed batch — or a local classifier’s raw logits awaiting softmax in the adapter — yields numeric vectors; a sentiment batch yields one scalar score per row (the adapter’s output, never a raw provider shape).
Variants§
Text(Vec<String>)
One text output per input row.
Vectors(Vec<Vec<f32>>)
One numeric vector per input row (embeddings, or classifier logits).
Scores(Vec<f64>)
One scalar score per input row. Produced by the adapter for
ai_sentiment (continuous, in [-1, 1]); providers never return this
shape directly.
Implementations§
Trait Implementations§
Source§impl Clone for InferenceOutputs
impl Clone for InferenceOutputs
Source§fn clone(&self) -> InferenceOutputs
fn clone(&self) -> InferenceOutputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InferenceOutputs
impl Debug for InferenceOutputs
Source§impl PartialEq for InferenceOutputs
impl PartialEq for InferenceOutputs
Source§fn eq(&self, other: &InferenceOutputs) -> bool
fn eq(&self, other: &InferenceOutputs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InferenceOutputs
Auto Trait Implementations§
impl Freeze for InferenceOutputs
impl RefUnwindSafe for InferenceOutputs
impl Send for InferenceOutputs
impl Sync for InferenceOutputs
impl Unpin for InferenceOutputs
impl UnsafeUnpin for InferenceOutputs
impl UnwindSafe for InferenceOutputs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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