Browse Source

improve code style according to the report from reviewbot

tags/v1.1.0
Bairong 5 years ago
parent
commit
ede73d2a9a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      mindspore/ccsrc/vm/backend.cc

+ 1
- 2
mindspore/ccsrc/vm/backend.cc View File

@@ -56,14 +56,13 @@ LinConvertResult MsBackend::MsConvert(const GraphSegmentPtr &segment, const std:
result.inputs = inputs;
result.outputs = outputs;
result.graph_id = kInvalidGraphId;
GraphId graph_id = kInvalidGraphId;
auto current_session = target_sess_;
if (target != target_device_ && !target.empty()) {
CreateOtherSession(target);
current_session = other_sess_;
}
MS_EXCEPTION_IF_NULL(current_session);
graph_id = current_session->CompileGraph(segment, outputs);
GraphId graph_id = current_session->CompileGraph(segment, outputs);
segment->graph_id_ = graph_id;
auto graph = current_session->GetGraph(graph_id);
MS_EXCEPTION_IF_NULL(graph);


Loading…
Cancel
Save