pub struct ExecMemory {
pub memory_micros: i64,
pub host_temp_bytes: i64,
pub host_persistent_bytes: i64,
pub accelerator_temp_bytes: i64,
pub accelerator_persistent_bytes: i64,
pub requested_bytes: i64,
pub peak_bytes: i64,
pub residual_bytes: i64,
pub output_bytes: i64,
pub allocator_bytes_in_use: i64,
pub output_memory: HashMap<i32, Memory>,
}
Fields§
§memory_micros: i64
This is the timestamp when the memory information was tracked.
host_temp_bytes: i64
NOTE: Please don’t depend on the following 4 fields yet. Due to TensorFlow internal tracing issues, the numbers can be quite wrong. TODO(xpan): Fix the TensorFlow internal tracing.
host_persistent_bytes: i64
§accelerator_temp_bytes: i64
§accelerator_persistent_bytes: i64
§requested_bytes: i64
Total bytes requested by the op.
peak_bytes: i64
Total bytes requested by the op and released before op end.
residual_bytes: i64
Total bytes requested by the op and not released after op end.
output_bytes: i64
Total bytes output by the op (not necessarily requested by the op).
allocator_bytes_in_use: i64
The total number of bytes currently allocated by the allocator if >0.
output_memory: HashMap<i32, Memory>
The memory of each output of the operation.
Trait Implementations§
Source§impl Clone for ExecMemory
impl Clone for ExecMemory
Source§fn clone(&self) -> ExecMemory
fn clone(&self) -> ExecMemory
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 ExecMemory
impl Debug for ExecMemory
Source§impl Default for ExecMemory
impl Default for ExecMemory
Source§impl Message for ExecMemory
impl Message for ExecMemory
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 ExecMemory
impl PartialEq for ExecMemory
impl StructuralPartialEq for ExecMemory
Auto Trait Implementations§
impl Freeze for ExecMemory
impl RefUnwindSafe for ExecMemory
impl Send for ExecMemory
impl Sync for ExecMemory
impl Unpin for ExecMemory
impl UnwindSafe for ExecMemory
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