pub struct ProfileNode {Show 16 fields
pub name: String,
pub op: String,
pub id: i64,
pub inputs: HashMap<i32, i64>,
pub input_shapes: HashMap<i32, Tuple>,
pub outputs: HashMap<i32, i64>,
pub output_shapes: HashMap<i32, Tuple>,
pub src_output_index: HashMap<i64, i32>,
pub shape: Vec<i64>,
pub op_types: Vec<String>,
pub canonical_device: String,
pub host_device: String,
pub float_ops: i64,
pub trace: Option<CodeDef>,
pub attrs: HashMap<String, AttrValue>,
pub execs: HashMap<i64, ExecProfile>,
}
Fields§
§name: String
graph node name.
op: String
graph operation type.
id: i64
A unique id for the node.
inputs: HashMap<i32, i64>
§input_shapes: HashMap<i32, Tuple>
§outputs: HashMap<i32, i64>
§output_shapes: HashMap<i32, Tuple>
§src_output_index: HashMap<i64, i32>
A map from source node id to its output index to current node.
shape: Vec<i64>
§op_types: Vec<String>
§canonical_device: String
§host_device: String
§float_ops: i64
§trace: Option<CodeDef>
§attrs: HashMap<String, AttrValue>
§execs: HashMap<i64, ExecProfile>
Trait Implementations§
Source§impl Clone for ProfileNode
impl Clone for ProfileNode
Source§fn clone(&self) -> ProfileNode
fn clone(&self) -> ProfileNode
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 ProfileNode
impl Debug for ProfileNode
Source§impl Default for ProfileNode
impl Default for ProfileNode
Source§impl Message for ProfileNode
impl Message for ProfileNode
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 ProfileNode
impl PartialEq for ProfileNode
impl StructuralPartialEq for ProfileNode
Auto Trait Implementations§
impl Freeze for ProfileNode
impl RefUnwindSafe for ProfileNode
impl Send for ProfileNode
impl Sync for ProfileNode
impl Unpin for ProfileNode
impl UnwindSafe for ProfileNode
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