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/contrib/image | |
parent | 1d6a57edc0be0dcc0c92eb2610b88420a7b7be51 (diff) |
Avoid capturing unused variables in lambda functions
PiperOrigin-RevId: 188747641
Diffstat (limited to 'tensorflow/contrib/image')
-rw-r--r-- | tensorflow/contrib/image/kernels/segmentation_ops.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/image/kernels/segmentation_ops.cc b/tensorflow/contrib/image/kernels/segmentation_ops.cc index fe8bf6e21c..9372289623 100644 --- a/tensorflow/contrib/image/kernels/segmentation_ops.cc +++ b/tensorflow/contrib/image/kernels/segmentation_ops.cc @@ -101,8 +101,8 @@ struct ImageConnectedComponentsFunctor<CPUDevice, T> { int cost = (union_find.block_height() + union_find.block_width()) * 20; Shard(worker_threads->num_threads, worker_threads->workers, num_images * num_blocks_vertically * num_blocks_horizontally, cost, - [&union_find, num_images, num_blocks_vertically, - num_blocks_horizontally](int64 start_block, int64 limit_block) { + [&union_find, num_blocks_vertically, num_blocks_horizontally]( + int64 start_block, int64 limit_block) { for (int64 i = start_block; i < limit_block; i++) { int64 block_x = i % num_blocks_horizontally; int64 block_y = |