Struct tfrecord::protobuf::GraphDebugInfo
source · pub struct GraphDebugInfo {
pub files: Vec<String>,
pub traces: HashMap<String, StackTrace>,
}
Fields§
§files: Vec<String>
This stores all the source code file names and can be indexed by the
file_index
.
traces: HashMap<String, StackTrace>
This maps a node name to a stack trace in the source code. The map key is a mangling of the containing function and op name with syntax: op.name ‘@’ func_name For ops in the top-level graph, the func_name is the empty string. Note that op names are restricted to a small number of characters which exclude ‘@’, making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
Trait Implementations§
source§impl Clone for GraphDebugInfo
impl Clone for GraphDebugInfo
source§fn clone(&self) -> GraphDebugInfo
fn clone(&self) -> GraphDebugInfo
Returns a copy 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 GraphDebugInfo
impl Debug for GraphDebugInfo
source§impl Default for GraphDebugInfo
impl Default for GraphDebugInfo
source§impl<'de> Deserialize<'de> for GraphDebugInfo
impl<'de> Deserialize<'de> for GraphDebugInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Message for GraphDebugInfo
impl Message for GraphDebugInfo
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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
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>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq<GraphDebugInfo> for GraphDebugInfo
impl PartialEq<GraphDebugInfo> for GraphDebugInfo
source§fn eq(&self, other: &GraphDebugInfo) -> bool
fn eq(&self, other: &GraphDebugInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GraphDebugInfo
impl Serialize for GraphDebugInfo
impl StructuralPartialEq for GraphDebugInfo
Auto Trait Implementations§
impl RefUnwindSafe for GraphDebugInfo
impl Send for GraphDebugInfo
impl Sync for GraphDebugInfo
impl Unpin for GraphDebugInfo
impl UnwindSafe for GraphDebugInfo
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.