diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-02 13:22:15 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-02 13:25:44 -0700 |
commit | f4b8d21b8e41636b6e61f0a1de753430108d2ee7 (patch) | |
tree | 107a27b633dfe9ac6a519da49f90dd7f186af7e0 /tensorflow/core/util/equal_graph_def_test.cc | |
parent | 4905c0eae45fc509d21dd0b18b15d406e2d94bf8 (diff) |
Change function parameters to references to avoid copying, or otherwise move from function parameters when moving reduces the amount of copying.
PiperOrigin-RevId: 157867333
Diffstat (limited to 'tensorflow/core/util/equal_graph_def_test.cc')
-rw-r--r-- | tensorflow/core/util/equal_graph_def_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/core/util/equal_graph_def_test.cc b/tensorflow/core/util/equal_graph_def_test.cc index af870c5c60..054cc92c16 100644 --- a/tensorflow/core/util/equal_graph_def_test.cc +++ b/tensorflow/core/util/equal_graph_def_test.cc @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +#include <utility> + #include "tensorflow/core/util/equal_graph_def.h" #include "tensorflow/core/framework/node_def_util.h" @@ -40,7 +42,7 @@ Node* Alternate(const GraphDefBuilder::Options& opts) { Node* Combine(ops::NodeOut a, ops::NodeOut b, const GraphDefBuilder::Options& opts) { - return ops::BinaryOp("Combine", a, b, opts); + return ops::BinaryOp("Combine", std::move(a), std::move(b), opts); } class EqualGraphDefTest : public ::testing::Test { |