pub struct RunMetadata {
pub step_stats: Option<StepStats>,
pub cost_graph: Option<CostGraphDef>,
pub partition_graphs: Vec<GraphDef>,
pub function_graphs: Vec<FunctionGraphs>,
}
Expand description
Metadata output (i.e., non-Tensor) for a single Run() call.
Fields§
§step_stats: Option<StepStats>
Statistics traced for this step. Populated if tracing is turned on via the “RunOptions” proto. EXPERIMENTAL: The format and set of events may change in future versions.
cost_graph: Option<CostGraphDef>
The cost graph for the computation defined by the run call.
partition_graphs: Vec<GraphDef>
Graphs of the partitions executed by executors.
function_graphs: Vec<FunctionGraphs>
This is only populated for graphs that are run as functions in TensorFlow V2. There will be an entry below for each function that is traced. The main use cases of the post_optimization_graph and the partition_graphs is to give the caller insight into the graphs that were actually run by the runtime. Additional information (such as those in step_stats) will match these graphs. We also include the pre_optimization_graph since it is usually easier to read, and is helpful in situations where the caller wants to get a high level idea of what the built graph looks like (since the various graph optimization passes might change the structure of the graph significantly).
Trait Implementations§
Source§impl Clone for RunMetadata
impl Clone for RunMetadata
Source§fn clone(&self) -> RunMetadata
fn clone(&self) -> RunMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RunMetadata
impl Debug for RunMetadata
Source§impl Default for RunMetadata
impl Default for RunMetadata
Source§impl Message for RunMetadata
impl Message for RunMetadata
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
.