diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-05-30 08:47:25 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-05-30 08:50:43 -0700 |
commit | d83074847ebfe8871188f1f9f1e84ab0451f59e6 (patch) | |
tree | dbe0bd71cb9b8934889df83f221cef83f494a28e /tensorflow/examples/adding_an_op | |
parent | b73fea6e27b17dc4349754e585113e7a8138339e (diff) |
Use "nullptr" for null pointer values
PiperOrigin-RevId: 157468186
Diffstat (limited to 'tensorflow/examples/adding_an_op')
4 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/examples/adding_an_op/cuda_op_kernel.cc b/tensorflow/examples/adding_an_op/cuda_op_kernel.cc index 2f323b43d8..af04258fa2 100644 --- a/tensorflow/examples/adding_an_op/cuda_op_kernel.cc +++ b/tensorflow/examples/adding_an_op/cuda_op_kernel.cc @@ -40,7 +40,7 @@ class AddOneOp : public OpKernel { auto input = input_tensor.flat<int32>(); // Create an output tensor - Tensor* output_tensor = NULL; + Tensor* output_tensor = nullptr; OP_REQUIRES_OK(context, context->allocate_output(0, input_tensor.shape(), &output_tensor)); auto output = output_tensor->template flat<int32>(); diff --git a/tensorflow/examples/adding_an_op/zero_out_op_kernel_1.cc b/tensorflow/examples/adding_an_op/zero_out_op_kernel_1.cc index cc8c719c1a..6d57b64d1a 100644 --- a/tensorflow/examples/adding_an_op/zero_out_op_kernel_1.cc +++ b/tensorflow/examples/adding_an_op/zero_out_op_kernel_1.cc @@ -43,7 +43,7 @@ class ZeroOutOp : public OpKernel { auto input = input_tensor.flat<int32>(); // Create an output tensor - Tensor* output_tensor = NULL; + Tensor* output_tensor = nullptr; OP_REQUIRES_OK(context, context->allocate_output(0, input_tensor.shape(), &output_tensor)); auto output = output_tensor->template flat<int32>(); diff --git a/tensorflow/examples/adding_an_op/zero_out_op_kernel_2.cc b/tensorflow/examples/adding_an_op/zero_out_op_kernel_2.cc index 3aa18c7307..04c34c5968 100644 --- a/tensorflow/examples/adding_an_op/zero_out_op_kernel_2.cc +++ b/tensorflow/examples/adding_an_op/zero_out_op_kernel_2.cc @@ -65,7 +65,7 @@ class ZeroOutOp : public OpKernel { auto input = input_tensor.flat<T>(); // Create an output tensor - Tensor* output = NULL; + Tensor* output = nullptr; OP_REQUIRES_OK(context, context->allocate_output(0, input_tensor.shape(), &output)); auto output_flat = output->template flat<T>(); diff --git a/tensorflow/examples/adding_an_op/zero_out_op_kernel_3.cc b/tensorflow/examples/adding_an_op/zero_out_op_kernel_3.cc index 76f6efa334..3d1c4307ad 100644 --- a/tensorflow/examples/adding_an_op/zero_out_op_kernel_3.cc +++ b/tensorflow/examples/adding_an_op/zero_out_op_kernel_3.cc @@ -50,7 +50,7 @@ class ZeroOutOp : public OpKernel { errors::InvalidArgument("preserve_index out of range")); // Create an output tensor - Tensor* output_tensor = NULL; + Tensor* output_tensor = nullptr; OP_REQUIRES_OK(context, context->allocate_output(0, input_tensor.shape(), &output_tensor)); auto output = output_tensor->template flat<int32>(); |