pub struct ModelStatistics {
pub name: String,
pub version: String,
pub last_inference: u64,
pub inference_count: u64,
pub execution_count: u64,
pub inference_stats: Option<InferStatistics>,
pub batch_stats: Vec<InferBatchStatistics>,
}
Expand description
@@ @@.. cpp:var:: message ModelStatistics @@ @@ Statistics for a specific model and version. @@
Fields§
§name: String
@@ .. cpp:var:: string name @@ @@ The name of the model. If not given returns statistics for all @@
version: String
@@ .. cpp:var:: string version @@ @@ The version of the model. @@
last_inference: u64
@@ .. cpp:var:: uint64 last_inference @@ @@ The timestamp of the last inference request made for this model, @@ as milliseconds since the epoch. @@
inference_count: u64
@@ .. cpp:var:: uint64 last_inference @@ @@ The cumulative count of successful inference requests made for this @@ model. Each inference in a batched request is counted as an @@ individual inference. For example, if a client sends a single @@ inference request with batch size 64, “inference_count” will be @@ incremented by 64. Similarly, if a clients sends 64 individual @@ requests each with batch size 1, “inference_count” will be @@ incremented by 64. The “inference_count” value DOES NOT include @@ cache hits. @@
execution_count: u64
@@ .. cpp:var:: uint64 last_inference @@ @@ The cumulative count of the number of successful inference executions @@ performed for the model. When dynamic batching is enabled, a single @@ model execution can perform inferencing for more than one inference @@ request. For example, if a clients sends 64 individual requests each @@ with batch size 1 and the dynamic batcher batches them into a single @@ large batch for model execution then “execution_count” will be @@ incremented by 1. If, on the other hand, the dynamic batcher is not @@ enabled for that each of the 64 individual requests is executed @@ independently, then “execution_count” will be incremented by 64. @@ The “execution_count” value DOES NOT include cache hits. @@
inference_stats: Option<InferStatistics>
@@ .. cpp:var:: InferStatistics inference_stats @@ @@ The aggregate statistics for the model/version. @@
batch_stats: Vec<InferBatchStatistics>
@@ .. cpp:var:: InferBatchStatistics batch_stats (repeated) @@ @@ The aggregate statistics for each different batch size that is @@ executed in the model. The batch statistics indicate how many actual @@ model executions were performed and show differences due to different @@ batch size (for example, larger batches typically take longer to @@ compute). @@
Trait Implementations§
Source§impl Clone for ModelStatistics
impl Clone for ModelStatistics
Source§fn clone(&self) -> ModelStatistics
fn clone(&self) -> ModelStatistics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ModelStatistics
impl Debug for ModelStatistics
Source§impl Default for ModelStatistics
impl Default for ModelStatistics
Source§impl Message for ModelStatistics
impl Message for ModelStatistics
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 ModelStatistics
impl PartialEq for ModelStatistics
impl StructuralPartialEq for ModelStatistics
Auto Trait Implementations§
impl Freeze for ModelStatistics
impl RefUnwindSafe for ModelStatistics
impl Send for ModelStatistics
impl Sync for ModelStatistics
impl Unpin for ModelStatistics
impl UnwindSafe for ModelStatistics
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