Merge pull request #10839 from zinspierre/patch1

DirectSession Run() : Variable name  typo
This commit is contained in:
Yifei Feng 2017-06-20 10:18:27 -07:00 committed by GitHub
commit c83b70baa4

View File

@ -618,11 +618,11 @@ Status DirectSession::Run(const RunOptions& run_options,
// If requested via RunOptions, output the partition graphs. // If requested via RunOptions, output the partition graphs.
if (run_options.output_partition_graphs()) { if (run_options.output_partition_graphs()) {
protobuf::RepeatedPtrField<GraphDef>* parition_graph_defs = protobuf::RepeatedPtrField<GraphDef>* partition_graph_defs =
run_metadata->mutable_partition_graphs(); run_metadata->mutable_partition_graphs();
for (const PerPartitionExecutorsAndLib& exec_and_lib : for (const PerPartitionExecutorsAndLib& exec_and_lib :
executors_and_keys->items) { executors_and_keys->items) {
GraphDef* partition_graph_def = parition_graph_defs->Add(); GraphDef* partition_graph_def = partition_graph_defs->Add();
exec_and_lib.graph->ToGraphDef(partition_graph_def); exec_and_lib.graph->ToGraphDef(partition_graph_def);
} }
} }