aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/stage_op.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/kernels/stage_op.cc')
-rw-r--r--tensorflow/core/kernels/stage_op.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/kernels/stage_op.cc b/tensorflow/core/kernels/stage_op.cc
index 34db850013..c18b992ea1 100644
--- a/tensorflow/core/kernels/stage_op.cc
+++ b/tensorflow/core/kernels/stage_op.cc
@@ -113,10 +113,10 @@ class UnstageOp : public OpKernel {
Buffer::Tuple tuple;
buf->Get(&tuple);
OP_REQUIRES(
- ctx, tuple.size() == ctx->num_outputs(),
+ ctx, tuple.size() == (size_t)ctx->num_outputs(),
errors::InvalidArgument("Mismatch stage/unstage: ", tuple.size(),
" vs. ", ctx->num_outputs()));
- for (int i = 0; i < tuple.size(); ++i) {
+ for (size_t i = 0; i < tuple.size(); ++i) {
ctx->set_output(i, tuple[i]);
}
}