aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/memory_types.cc
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <bsteiner@google.com>2018-03-12 11:04:59 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-12 11:10:53 -0700
commit62fa49ff5dbab9df83362112e17c04f857c72f44 (patch)
treed7ae914bbc0c2dc20dfffd02e15622e5335a43ee /tensorflow/core/common_runtime/memory_types.cc
parent1d6a57edc0be0dcc0c92eb2610b88420a7b7be51 (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.cc4
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();
}