pub struct InferBatchStatistics {
pub batch_size: u64,
pub compute_input: Option<StatisticDuration>,
pub compute_infer: Option<StatisticDuration>,
pub compute_output: Option<StatisticDuration>,
}
Expand description
@@ @@.. cpp:var:: message InferBatchStatistics @@ @@ Inference batch statistics. @@
Fields§
§batch_size: u64
@@ .. cpp:var:: uint64 batch_size @@ @@ The size of the batch. @@
compute_input: Option<StatisticDuration>
@@ .. cpp:var:: StatisticDuration compute_input @@ @@ The count and cumulative duration to prepare input tensor data as @@ required by the model framework / backend with the given batch size. @@ For example, this duration should include the time to copy input @@ tensor data to the GPU. @@
compute_infer: Option<StatisticDuration>
@@ .. cpp:var:: StatisticDuration compute_infer @@ @@ The count and cumulative duration to execute the model with the given @@ batch size. @@
compute_output: Option<StatisticDuration>
@@ .. cpp:var:: StatisticDuration compute_output @@ @@ The count and cumulative duration to extract output tensor data @@ produced by the model framework / backend with the given batch size. @@ For example, this duration should include the time to copy output @@ tensor data from the GPU. @@
Trait Implementations§
Source§impl Clone for InferBatchStatistics
impl Clone for InferBatchStatistics
Source§fn clone(&self) -> InferBatchStatistics
fn clone(&self) -> InferBatchStatistics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InferBatchStatistics
impl Debug for InferBatchStatistics
Source§impl Default for InferBatchStatistics
impl Default for InferBatchStatistics
Source§impl Message for InferBatchStatistics
impl Message for InferBatchStatistics
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for InferBatchStatistics
impl PartialEq for InferBatchStatistics
impl StructuralPartialEq for InferBatchStatistics
Auto Trait Implementations§
impl Freeze for InferBatchStatistics
impl RefUnwindSafe for InferBatchStatistics
impl Send for InferBatchStatistics
impl Sync for InferBatchStatistics
impl Unpin for InferBatchStatistics
impl UnwindSafe for InferBatchStatistics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request