diff options
author | Benoit Steiner <bsteiner@google.com> | 2018-03-12 11:04:59 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-03-12 11:10:53 -0700 |
commit | 62fa49ff5dbab9df83362112e17c04f857c72f44 (patch) | |
tree | d7ae914bbc0c2dc20dfffd02e15622e5335a43ee /tensorflow/core/common_runtime/memory_types.cc | |
parent | 1d6a57edc0be0dcc0c92eb2610b88420a7b7be51 (diff) |
Avoid capturing unused variables in lambda functions
PiperOrigin-RevId: 188747641
Diffstat (limited to 'tensorflow/core/common_runtime/memory_types.cc')
-rw-r--r-- | tensorflow/core/common_runtime/memory_types.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/common_runtime/memory_types.cc b/tensorflow/core/common_runtime/memory_types.cc index 090a16ebeb..116750fbfd 100644 --- a/tensorflow/core/common_runtime/memory_types.cc +++ b/tensorflow/core/common_runtime/memory_types.cc @@ -92,7 +92,7 @@ static Status ProcessMemoryTypes( Status ValidateMemoryTypes(const DeviceType& device_type, const Graph* g) { return ProcessMemoryTypes( - device_type, g, [g](const Edge* e, MemoryType sm, MemoryType dm) { + device_type, g, [](const Edge* e, MemoryType sm, MemoryType dm) { if (sm == dm) { return Status::OK(); } @@ -155,7 +155,7 @@ Status EnsureMemoryTypes(const DeviceType& device_type, }; std::vector<Item> edges; TF_RETURN_IF_ERROR(ProcessMemoryTypes( - device_type, g, [g, &edges](const Edge* e, MemoryType sm, MemoryType dm) { + device_type, g, [&edges](const Edge* e, MemoryType sm, MemoryType dm) { if (sm == dm) { return Status::OK(); } |