Skip to content

Commit 76e6882

Browse files
committed
fix bugs when compilei
1 parent b259b1e commit 76e6882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/pten/tests/api/test_elementwise_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ TEST(API, subtract) {
120120
auto out = paddle::experimental::subtract(x, y);
121121

122122
// 3. check result
123-
ASSERT_EQ(out.shape().size(), 2);
123+
ASSERT_EQ(out.shape().size(), 2UL);
124124
ASSERT_EQ(out.shape()[0], 3);
125125
ASSERT_EQ(out.numel(), 30);
126126
ASSERT_EQ(out.is_cpu(), true);

0 commit comments

Comments
 (0)