From 32daa90fbdf1bdb4cf86c1df89e5338388bce46a Mon Sep 17 00:00:00 2001 From: Brennan Vincent Date: Thu, 31 Jan 2019 10:41:17 -0800 Subject: [PATCH] remove unused capture (#16526) Summary: We don't use this in the lambda body anymore. Remove it to fix a warning. Pull Request resolved: https://github.com/pytorch/pytorch/pull/16526 Differential Revision: D13867043 Pulled By: umanwizard fbshipit-source-id: 4c9a9d194fdfcb63fde16823517d2c6c8e2ae93d --- aten/src/ATen/native/cpu/Reduce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aten/src/ATen/native/cpu/Reduce.h b/aten/src/ATen/native/cpu/Reduce.h index c0d553e..7500781 100644 --- a/aten/src/ATen/native/cpu/Reduce.h +++ b/aten/src/ATen/native/cpu/Reduce.h @@ -84,7 +84,7 @@ void binary_kernel_reduce(TensorIterator& iter, ops_t ops, init_t init) { ); iter.foreach_reduced_elt([&](TensorIterator &sub_iter) { auto reduction_body = [&](acc_t acc, int64_t begin, int64_t end) -> acc_t { - sub_iter.serial_for_each([&acc, &ops, &init](int ntensors, char** data, const int64_t* strides, int64_t size) { + sub_iter.serial_for_each([&acc, &ops](int ntensors, char** data, const int64_t* strides, int64_t size) { AT_ASSERT(ntensors == 2); char *in = data[1]; int64_t stride = strides[1]; -- 2.7.4