[][src]Struct tensorflow_proto::tensorflow::tfprof::GraphNodeProto

pub struct GraphNodeProto {
    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>,
}

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: i64accelerator_exec_micros: i64cpu_exec_micros: i64requested_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: i64total_exec_micros: i64total_accelerator_exec_micros: i64total_cpu_exec_micros: i64total_requested_bytes: i64total_peak_bytes: i64total_residual_bytes: i64total_output_bytes: i64total_parameters: i64total_float_ops: i64shapes: 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

impl Clone for GraphNodeProto[src]

impl Debug for GraphNodeProto[src]

impl Default for GraphNodeProto[src]

impl Message for GraphNodeProto[src]

impl PartialEq<GraphNodeProto> for GraphNodeProto[src]

impl StructuralPartialEq for GraphNodeProto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.