diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-12-06 23:14:18 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-06 23:18:04 -0800 |
commit | b9df87ffc4a53566320e2baf17f0daeca25fdde9 (patch) | |
tree | d384f0063178404b88ef4fb322fc9463a8435339 /tensorflow/contrib/resampler | |
parent | 10197197fd43af6027c62e57bd3be375075e90e3 (diff) |
Wrap macro bodies in do{}while(0) to prevent capture of else-clauses.
PiperOrigin-RevId: 178202725
Diffstat (limited to 'tensorflow/contrib/resampler')
-rw-r--r-- | tensorflow/contrib/resampler/kernels/resampler_ops.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/contrib/resampler/kernels/resampler_ops.cc b/tensorflow/contrib/resampler/kernels/resampler_ops.cc index 7d9ef14cef..e02c1b6a2b 100644 --- a/tensorflow/contrib/resampler/kernels/resampler_ops.cc +++ b/tensorflow/contrib/resampler/kernels/resampler_ops.cc @@ -406,10 +406,10 @@ class ResamplerGradOp : public ::tensorflow::OpKernel { data_channels); OP_REQUIRES(ctx, grad_output_shape == resampler_output_shape, ::tensorflow::errors::InvalidArgument( - "grad_output shape is not consistent with data and warp " - "shapes; it should be ", - resampler_output_shape.DebugString(), " but is ", - grad_output_shape.DebugString())) + "grad_output shape is not consistent with data and warp " + "shapes; it should be ", + resampler_output_shape.DebugString(), " but is ", + grad_output_shape.DebugString())); const int num_sampling_points = warp.NumElements() / batch_size / 2; ::tensorflow::Tensor* grad_data = nullptr; ::tensorflow::Tensor* grad_warp = nullptr; |