aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/edit_distance_op.cc
diff options
context:
space:
mode:
authorGravatar David G. Andersen <dga@google.com>2016-05-23 15:51:03 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-05-23 17:02:47 -0700
commitd4ef9aa02c3c8297a053176918beaf34c13b73a6 (patch)
treefe900bd53361c3091339bc457d5af5c02ad47d7f /tensorflow/core/kernels/edit_distance_op.cc
parent81af087fb71a8323b0af09694a4de1ab54646de8 (diff)
int64->32 fixes. Notable fixes: Have listdiff return an explicit error instead
of mishandling > 2^31 entry X tensors. More descriptive naming inside LRN. Change: 123053130
Diffstat (limited to 'tensorflow/core/kernels/edit_distance_op.cc')
-rw-r--r--tensorflow/core/kernels/edit_distance_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/edit_distance_op.cc b/tensorflow/core/kernels/edit_distance_op.cc
index b4d14e8c62..7f0b73e6a2 100644
--- a/tensorflow/core/kernels/edit_distance_op.cc
+++ b/tensorflow/core/kernels/edit_distance_op.cc
@@ -144,7 +144,7 @@ class EditDistanceOp : public OpKernel {
std::iota(group_dims.begin(), group_dims.end(), 0);
TensorShape output_shape;
- for (size_t d = 0; d < group_dims.size(); ++d) {
+ for (int d = 0; d < static_cast<int>(group_dims.size()); ++d) {
output_shape.AddDim(std::max(hypothesis_st_shape.dim_size(d),
truth_st_shape.dim_size(d)));
}