From a507845a7735af6552f035f27902d2758bd36bcb Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Wed, 14 Nov 2018 06:13:41 +0000 Subject: [PATCH] test=develop --- paddle/fluid/operators/math/matrix_bit_code.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/math/matrix_bit_code.h b/paddle/fluid/operators/math/matrix_bit_code.h index 1e2abd1e697..39c3b1520b4 100644 --- a/paddle/fluid/operators/math/matrix_bit_code.h +++ b/paddle/fluid/operators/math/matrix_bit_code.h @@ -159,7 +159,7 @@ class CustomCode : public Code { for (int i = 0; i < static_cast(ptable_->dims()[1]); i++) { if (ptable_->data()[index_ * static_cast(ptable_->dims()[1]) + - i] != -1) { + i] >= 0) { length++; } else { return length; -- GitLab