diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-08-28 10:36:25 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-28 10:43:43 -0700 |
commit | 4f4e1b48862c30a21dedffb7a1929a2b2600ec9f (patch) | |
tree | 9b10bb2e00dde7890b4dcd1ddc6fb18698bf00d2 /tensorflow/core/graph/graph.cc | |
parent | d8f64b90e6f0bfec5135bdf99e42b8fdaf53788d (diff) |
Removed redundant std::string -> string conversions.
PiperOrigin-RevId: 210565027
Diffstat (limited to 'tensorflow/core/graph/graph.cc')
-rw-r--r-- | tensorflow/core/graph/graph.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/graph/graph.cc b/tensorflow/core/graph/graph.cc index 568f0870c0..ade9266231 100644 --- a/tensorflow/core/graph/graph.cc +++ b/tensorflow/core/graph/graph.cc @@ -483,7 +483,7 @@ const Edge* Graph::AddControlEdge(Node* source, Node* dest, void Graph::RemoveControlEdge(const Edge* e) { if (!e->src_->IsSource() && !e->dst_->IsSink()) { e->dst_->MaybeCopyOnWrite(); - std::string e_src_name = strings::StrCat("^", e->src_->name()); + string e_src_name = strings::StrCat("^", e->src_->name()); auto* inputs = e->dst_->props_->node_def.mutable_input(); for (auto it = inputs->begin(); it != inputs->end(); ++it) { if (*it == e_src_name) { @@ -721,7 +721,7 @@ Status Graph::AddWhileContext(StringPiece frame_name, std::vector<OutputTensor> body_outputs, WhileContext** result) { auto pair = while_ctxs_.insert(std::pair<string, WhileContext>( - std::string(frame_name), + string(frame_name), WhileContext(frame_name, std::move(enter_nodes), std::move(exit_nodes), cond_output, std::move(body_inputs), std::move(body_outputs)))); |