aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/queue_ops.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-26 11:59:56 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-26 12:03:52 -0800
commit0f65c8f572201f8838189f3e3c3e455759112c14 (patch)
tree55d3ad38ebe720d5c3edb8d0722b55d4cd778e3e /tensorflow/core/kernels/queue_ops.cc
parentff6463f4277f412b98d6e6bb1283841ff66902de (diff)
Cleanup: Ran clang-format on all *.{cc,h} files in tensorflow/core/kernels.
PiperOrigin-RevId: 183423961
Diffstat (limited to 'tensorflow/core/kernels/queue_ops.cc')
-rw-r--r--tensorflow/core/kernels/queue_ops.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/tensorflow/core/kernels/queue_ops.cc b/tensorflow/core/kernels/queue_ops.cc
index 17831b7437..46a02854d7 100644
--- a/tensorflow/core/kernels/queue_ops.cc
+++ b/tensorflow/core/kernels/queue_ops.cc
@@ -428,13 +428,14 @@ REGISTER_KERNEL_BUILDER(Name("QueueSizeV2").Device(DEVICE_CPU), QueueSizeOp);
class QueueIsClosedOp : public QueueOpKernel {
public:
explicit QueueIsClosedOp(OpKernelConstruction* context)
- : QueueOpKernel(context) {}
+ : QueueOpKernel(context) {}
protected:
void ComputeAsync(OpKernelContext* ctx, QueueInterface* queue,
DoneCallback callback) override {
Tensor* Tqueue_is_closed = nullptr;
- OP_REQUIRES_OK(ctx, ctx->allocate_output(0, TensorShape({}), &Tqueue_is_closed));
+ OP_REQUIRES_OK(ctx,
+ ctx->allocate_output(0, TensorShape({}), &Tqueue_is_closed));
Tqueue_is_closed->flat<bool>().setConstant(queue->is_closed());
callback();
}
@@ -443,8 +444,10 @@ class QueueIsClosedOp : public QueueOpKernel {
TF_DISALLOW_COPY_AND_ASSIGN(QueueIsClosedOp);
};
-REGISTER_KERNEL_BUILDER(Name("QueueIsClosed").Device(DEVICE_CPU), QueueIsClosedOp);
-REGISTER_KERNEL_BUILDER(Name("QueueIsClosedV2").Device(DEVICE_CPU), QueueIsClosedOp);
+REGISTER_KERNEL_BUILDER(Name("QueueIsClosed").Device(DEVICE_CPU),
+ QueueIsClosedOp);
+REGISTER_KERNEL_BUILDER(Name("QueueIsClosedV2").Device(DEVICE_CPU),
+ QueueIsClosedOp);
class FakeQueueOp : public OpKernel {
public: