pub struct Output {
pub name: String,
pub shape: Vec<i64>,
/* private fields */
}Expand description
Output tensor of the model.
Must not outlive the parent Response.
Each output is a reference on a part of the output buffer (passed to request via Allocator) that contains the embedding. May be smaller than initial buffer, if Triton does not need whole buffer.
Fields§
§name: StringName of the output tensor.
shape: Vec<i64>Shape (dims) of the output tensor.
Implementations§
Source§impl Output
impl Output
Sourcepub fn get_buffer(&self) -> &Buffer
pub fn get_buffer(&self) -> &Buffer
Get the Buffer containing the inference result (embedding).
§Safety
Do not mutate data of the returned value. If mutable (owned) Buffer is needed, use Response::return_buffers.
Sourcepub fn memory_type(&self) -> MemoryType
pub fn memory_type(&self) -> MemoryType
Get memory type of the output tensor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Unpin for Output
impl UnwindSafe for Output
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