diff options
author | 2017-05-09 09:14:16 -0700 | |
---|---|---|
committer | 2017-05-10 16:29:47 -0700 | |
commit | 1d0b8c007b8bc7f77dd63c74f02d87185071f038 (patch) | |
tree | b72df4064224d66c62bb4a126efb06fa214fa439 /tensorflow/core/common_runtime/simple_placer_test.cc | |
parent | b9845c6d0d5dc601fb3b58206a7070aa8937af4f (diff) |
Remove unnecessary copies of value parameters.
PiperOrigin-RevId: 155511618
Diffstat (limited to 'tensorflow/core/common_runtime/simple_placer_test.cc')
-rw-r--r-- | tensorflow/core/common_runtime/simple_placer_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/core/common_runtime/simple_placer_test.cc b/tensorflow/core/common_runtime/simple_placer_test.cc index 24f27af5f1..69ed58b33c 100644 --- a/tensorflow/core/common_runtime/simple_placer_test.cc +++ b/tensorflow/core/common_runtime/simple_placer_test.cc @@ -237,7 +237,7 @@ class SimplePlacerTest : public ::testing::Test { Status ReferenceTestHelper(const string& variable_op_type, const string& assign_op_type, - DeviceType expected_device_type); + const DeviceType& expected_device_type); }; #define EXPECT_COLOCATED(g, name_a, name_b) \ @@ -500,9 +500,9 @@ TEST_F(SimplePlacerTest, TestAssignedGpuDeviceToCpuDevice) { // Build a graph containing a Variable op of "variable_op_type" and an // Assign op of "assign_op_type", and expect all of the ops to be // placed on a device of type "expected_device_type". -Status SimplePlacerTest::ReferenceTestHelper(const string& variable_op_type, - const string& assign_op_type, - DeviceType expected_device_type) { +Status SimplePlacerTest::ReferenceTestHelper( + const string& variable_op_type, const string& assign_op_type, + const DeviceType& expected_device_type) { Graph g(OpRegistry::Global()); { // Scope for temporary variables used to construct g. GraphDefBuilder b(GraphDefBuilder::kFailImmediately); |