Skip to content

Commit 161bd4a

Browse files
authored
Merge pull request #7663 from chengduoZH/fix_warning/seq_pad_test
Fix compiling warnings
2 parents 7a68787 + 8e02870 commit 161bd4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/operators/math/sequence_padding_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void TestSequencePadding(const paddle::framework::LoD& lod,
3131

3232
cpu_seq.set_lod(lod);
3333
cpu_seq.mutable_data<T>(seq_dims, paddle::platform::CPUPlace());
34-
for (size_t i = 0; i < cpu_seq.numel(); ++i) {
34+
for (int64_t i = 0; i < cpu_seq.numel(); ++i) {
3535
cpu_seq.data<T>()[i] = static_cast<T>(i);
3636
}
3737

@@ -69,7 +69,7 @@ void TestSequencePadding(const paddle::framework::LoD& lod,
6969

7070
EXPECT_EQ(cpu_seq.numel(), cpu_seq_back.numel());
7171
EXPECT_EQ(cpu_seq.dims(), cpu_seq_back.dims());
72-
for (size_t i = 0; i < cpu_seq.numel(); ++i) {
72+
for (int64_t i = 0; i < cpu_seq.numel(); ++i) {
7373
EXPECT_EQ(cpu_seq.data<T>()[i], cpu_seq_back.data<T>()[i]);
7474
}
7575

0 commit comments

Comments
 (0)