diff options
author | Justin Lebar <jlebar@google.com> | 2017-03-03 17:03:22 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-03 17:28:36 -0800 |
commit | ef7d75baec1b0b3861acef52f1973bbe379ae881 (patch) | |
tree | beb249ef6f763db338332107aac67fa14ed6d628 /tensorflow/core/kernels/conditional_accumulator.h | |
parent | 9c86d93fd36db784677a50d0e4aca8fe6a342bac (diff) |
Fix code that ignores tensorflow::Status.
Change: 149170109
Diffstat (limited to 'tensorflow/core/kernels/conditional_accumulator.h')
-rw-r--r-- | tensorflow/core/kernels/conditional_accumulator.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/conditional_accumulator.h b/tensorflow/core/kernels/conditional_accumulator.h index f8c340a769..414891b142 100644 --- a/tensorflow/core/kernels/conditional_accumulator.h +++ b/tensorflow/core/kernels/conditional_accumulator.h @@ -85,8 +85,10 @@ class ConditionalAccumulator void AllocateAndAssignToAccumGradFunction(OpKernelContext* ctx, const Tensor* grad) override { + // TODO(b/32704451): Don't just ignore the ::tensorflow::Status object! ctx->allocate_persistent(dtype_, grad->shape(), &accum_grad_persistent_, - &accum_grad_); + &accum_grad_) + .IgnoreError(); accum_grad_->flat<T>().device(ctx->template eigen_device<Device>()) = grad->flat<T>(); } |