aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/roll_op.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-13 16:52:14 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-13 16:55:00 -0700
commit8eb34c50b997ff74e8b4bfb27abcbd03910c81b3 (patch)
tree47a0a6b71cbbafdf67c5aaed9391e117e1a8dbb0 /tensorflow/core/kernels/roll_op.cc
parent13980cc155d514eaa0a620b39d1396616a392775 (diff)
ClangTidy - Legacy cleanup:
* use nullptr * converting integer literal to bool, use bool literal instead * annotate this function with 'override' or (rarely) 'final' * prefer using 'override' or (rarely) 'final' instead of 'virtual' PiperOrigin-RevId: 196441181
Diffstat (limited to 'tensorflow/core/kernels/roll_op.cc')
-rw-r--r--tensorflow/core/kernels/roll_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/roll_op.cc b/tensorflow/core/kernels/roll_op.cc
index 4b630809c5..96f94d80df 100644
--- a/tensorflow/core/kernels/roll_op.cc
+++ b/tensorflow/core/kernels/roll_op.cc
@@ -285,7 +285,7 @@ class RollOp : public OpKernel {
dim_range[i] = dim_size_prod;
}
- Tensor* output = NULL;
+ Tensor* output = nullptr;
OP_REQUIRES_OK(context,
context->allocate_output(0, input.shape(), &output));
auto input_flat = input.flat<T>().data();