Skip to content

Commit 30dfbde

Browse files
authored
Merge pull request #13951 from tensor-tang/fix/warning
fix warning and mac compile
2 parents 034740f + e69328c commit 30dfbde

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

paddle/fluid/operators/fusion_seqexpand_concat_fc_op.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ class FusionSeqExpandConcatFCOpKernel : public framework::OpKernel<T> {
136136
// since infershape can not get lod info
137137
PADDLE_ENFORCE_EQ(ref_lod.size(), 1UL, "Only support input lod size is 1.");
138138
PADDLE_ENFORCE_EQ(in1_lod.size(), 1UL, "Only support input lod size is 1.");
139-
PADDLE_ENFORCE_EQ(in1_lod[0].size() - 1, N,
139+
PADDLE_ENFORCE_EQ(static_cast<int>(in1_lod[0].size() - 1), N,
140140
"Batch size of all inputs should be equal.");
141-
PADDLE_ENFORCE_EQ(in1_lod[0][N], N,
141+
PADDLE_ENFORCE_EQ(static_cast<int>(in1_lod[0][N]), N,
142142
"Seq_length of other inputs should be 1.");
143143
PADDLE_ENFORCE_EQ(in1_dims[0], N, "input height should be batch size.");
144144
for (size_t i = 2; i < ins.size(); ++i) {

paddle/fluid/operators/math/jit_kernel_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ limitations under the License. */
1616
#include <sys/time.h>
1717
#include <cmath> // for exp
1818
#include <cstring> // for memcpy
19+
#include <random>
1920
#include <string>
2021
#include <vector>
2122
#include "gflags/gflags.h"

0 commit comments

Comments
 (0)