pub struct OpPerformance {
pub op: Option<OpInfo>,
pub session_info: Option<SessionInfo>,
pub node: String,
pub temporary_memory_size: i64,
pub compute_cost: i64,
pub compute_time: i64,
pub memory_time: i64,
pub compute_efficiency: f64,
pub memory_efficiency: f64,
pub op_memory: Option<OpMemory>,
pub execution_time: Option<ExecutionTime>,
}
Expand description
Performance data for tensorflow operations
Fields§
§op: Option<OpInfo>
The op
session_info: Option<SessionInfo>
👎Deprecated
Information about the session configs.
node: String
The node name (optional). Makes it easier to associate the performance data with a specific graph node.
temporary_memory_size: i64
Temporary memory used by this node (in bytes).
compute_cost: i64
Time it takes to run the op (in nanoseconds).
compute_time: i64
Analytical compute cost (in nanoseconds).
memory_time: i64
Analytical memory access cost (in nanoseconds).
compute_efficiency: f64
Percentage of theoretical compute performance.
memory_efficiency: f64
Percentage of theoretical memory performance.
op_memory: Option<OpMemory>
§execution_time: Option<ExecutionTime>
Expected execution time, modeled using one of 2 possible distributions.
Trait Implementations§
Source§impl Clone for OpPerformance
impl Clone for OpPerformance
Source§fn clone(&self) -> OpPerformance
fn clone(&self) -> OpPerformance
Returns a duplicate of the value. Read more
1.0.0 · 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 OpPerformance
impl Debug for OpPerformance
Source§impl Default for OpPerformance
impl Default for OpPerformance
Source§impl Message for OpPerformance
impl Message for OpPerformance
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for OpPerformance
impl PartialEq for OpPerformance
impl StructuralPartialEq for OpPerformance
Auto Trait Implementations§
impl Freeze for OpPerformance
impl RefUnwindSafe for OpPerformance
impl Send for OpPerformance
impl Sync for OpPerformance
impl Unpin for OpPerformance
impl UnwindSafe for OpPerformance
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