From 0e165032a84fc06623f7f91a52eb31134526a29b Mon Sep 17 00:00:00 2001 From: wanghaox Date: Mon, 22 Jan 2018 17:33:38 +0800 Subject: [PATCH] update code --- paddle/operators/prior_box_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/prior_box_op.h b/paddle/operators/prior_box_op.h index 5483dd7bbe..1869807dc8 100644 --- a/paddle/operators/prior_box_op.h +++ b/paddle/operators/prior_box_op.h @@ -165,7 +165,7 @@ class PriorBoxOpKernel : public framework::OpKernel { } Eigen::Tensor var_et(1, variances.size()); - for (int i = 0; i < variances.size(); ++i) { + for (size_t i = 0; i < variances.size(); ++i) { var_et(0, i) = variances[i]; } -- GitLab