diff options
author | 2018-03-12 11:04:59 -0700 | |
---|---|---|
committer | 2018-03-12 11:10:53 -0700 | |
commit | 62fa49ff5dbab9df83362112e17c04f857c72f44 (patch) | |
tree | d7ae914bbc0c2dc20dfffd02e15622e5335a43ee /tensorflow/core/kernels/resource_variable_ops.cc | |
parent | 1d6a57edc0be0dcc0c92eb2610b88420a7b7be51 (diff) |
Avoid capturing unused variables in lambda functions
PiperOrigin-RevId: 188747641
Diffstat (limited to 'tensorflow/core/kernels/resource_variable_ops.cc')
-rw-r--r-- | tensorflow/core/kernels/resource_variable_ops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/resource_variable_ops.cc b/tensorflow/core/kernels/resource_variable_ops.cc index f254036ba7..aecad0185f 100644 --- a/tensorflow/core/kernels/resource_variable_ops.cc +++ b/tensorflow/core/kernels/resource_variable_ops.cc @@ -351,7 +351,7 @@ class AssignVariableOp<Device, Variant> : public OpKernel { Var* variable = nullptr; OP_REQUIRES_OK(context, LookupOrCreateResource<Var>( context, HandleFromInput(context, 0), &variable, - [this, context](Var** ptr) { + [](Var** ptr) { // Created on host. *ptr = new Var(DT_VARIANT); return Status::OK(); |