pub struct InferInputPayload<'a, T> {
pub name: &'a str,
pub shape: Vec<usize>,
pub datatype: &'a str,
pub data: T,
}Expand description
Represents a single input payload entry in an inference request.
Includes:
name: the tensor name, must match the model definition.shape: dimensions of the tensor.datatype: Triton-compatible datatype string (e.g."FP32","INT64").data: the raw input data (usually a Vec or slice).
§Example JSON
{
"name": "input_tensor",
"shape": [2, 2],
"datatype": "FP32",
"data": [0.1, 0.2, 0.3, 0.4]
}Fields§
§name: &'a str§shape: Vec<usize>§datatype: &'a str§data: TTrait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for InferInputPayload<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for InferInputPayload<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for InferInputPayload<'a, T>where
T: Send,
impl<'a, T> Sync for InferInputPayload<'a, T>where
T: Sync,
impl<'a, T> Unpin for InferInputPayload<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for InferInputPayload<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for InferInputPayload<'a, T>where
T: UnwindSafe,
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