Skip to content

Commit a507845

Browse files
committed
test=develop
1 parent 99d1446 commit a507845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/math/matrix_bit_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class CustomCode : public Code {
159159

160160
for (int i = 0; i < static_cast<int>(ptable_->dims()[1]); i++) {
161161
if (ptable_->data<R>()[index_ * static_cast<int>(ptable_->dims()[1]) +
162-
i] != -1) {
162+
i] >= 0) {
163163
length++;
164164
} else {
165165
return length;

0 commit comments

Comments
 (0)