pub struct GraphNodeProto {Show 27 fields
pub name: String,
pub tensor_value: Option<TfProfTensorProto>,
pub run_count: i64,
pub exec_micros: i64,
pub accelerator_exec_micros: i64,
pub cpu_exec_micros: i64,
pub requested_bytes: i64,
pub peak_bytes: i64,
pub residual_bytes: i64,
pub output_bytes: i64,
pub parameters: i64,
pub float_ops: i64,
pub devices: Vec<String>,
pub total_definition_count: i64,
pub total_run_count: i64,
pub total_exec_micros: i64,
pub total_accelerator_exec_micros: i64,
pub total_cpu_exec_micros: i64,
pub total_requested_bytes: i64,
pub total_peak_bytes: i64,
pub total_residual_bytes: i64,
pub total_output_bytes: i64,
pub total_parameters: i64,
pub total_float_ops: i64,
pub shapes: Vec<TensorShapeProto>,
pub input_shapes: HashMap<i32, TensorShapeProto>,
pub children: Vec<GraphNodeProto>,
}
Expand description
A node in TensorFlow graph. Used by scope/graph view.
Fields§
§name: String
op name.
tensor_value: Option<TfProfTensorProto>
tensor value restored from checkpoint.
run_count: i64
op execution time. A node can be defined once but run multiple times in tf.while_loop. the times sum up all different runs.
exec_micros: i64
§accelerator_exec_micros: i64
§cpu_exec_micros: i64
§requested_bytes: i64
Total bytes requested by the op.
peak_bytes: i64
Max bytes allocated and being used by the op at a point.
residual_bytes: i64
Total bytes requested by the op and not released before end.
output_bytes: i64
Total bytes output by the op (not necessarily allocated by the op).
parameters: i64
Number of parameters if available.
float_ops: i64
Number of float operations.
devices: Vec<String>
Device the op is assigned to. Since an op can fire multiple kernel calls, there can be multiple devices.
total_definition_count: i64
The following are the aggregated stats from all accounted children and the node itself. The actual children depend on the data structure used. In graph view, children are inputs recursively. In scope view, children are nodes under the name scope.
total_run_count: i64
§total_exec_micros: i64
§total_accelerator_exec_micros: i64
§total_cpu_exec_micros: i64
§total_requested_bytes: i64
§total_peak_bytes: i64
§total_residual_bytes: i64
§total_output_bytes: i64
§total_parameters: i64
§total_float_ops: i64
§shapes: Vec<TensorShapeProto>
shape information, if available. TODO(xpan): Why is this repeated?
input_shapes: HashMap<i32, TensorShapeProto>
§children: Vec<GraphNodeProto>
Descendants of the graph. The actual descendants depend on the data structure used (scope, graph).
Trait Implementations§
Source§impl Clone for GraphNodeProto
impl Clone for GraphNodeProto
Source§fn clone(&self) -> GraphNodeProto
fn clone(&self) -> GraphNodeProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GraphNodeProto
impl Debug for GraphNodeProto
Source§impl Default for GraphNodeProto
impl Default for GraphNodeProto
Source§impl Message for GraphNodeProto
impl Message for GraphNodeProto
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_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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
.