提交 7de10ee7 编写于 作者: F fengjiayi

formate code

上级 85c4f488
...@@ -59,12 +59,12 @@ TEST(DDim, Equality) { ...@@ -59,12 +59,12 @@ TEST(DDim, Equality) {
// slice a DDim // slice a DDim
paddle::framework::DDim ddim2 = paddle::framework::DDim ddim2 =
paddle::framework::make_ddim({1, 2, 3, 4, 5, 6}); paddle::framework::make_ddim({1, 2, 3, 4, 5, 6});
paddle::framework ::DDim ss = paddle::framework::slice_ddim(ddim2, 2, 5); paddle::framework::DDim ss = paddle::framework::slice_ddim(ddim2, 2, 5);
EXPECT_EQ(arity(ss), 3); EXPECT_EQ(arity(ss), 3);
EXPECT_EQ(ss[0], 3); EXPECT_EQ(ss[0], 3);
EXPECT_EQ(ss[1], 4); EXPECT_EQ(ss[1], 4);
EXPECT_EQ(ss[2], 5); EXPECT_EQ(ss[2], 5);
paddle::framework ::DDim ss2 = paddle::framework::slice_ddim(ddim2, 0, 6); paddle::framework::DDim ss2 = paddle::framework::slice_ddim(ddim2, 0, 6);
EXPECT_EQ(arity(ss2), 6); EXPECT_EQ(arity(ss2), 6);
EXPECT_EQ(ss2[0], 1); EXPECT_EQ(ss2[0], 1);
EXPECT_EQ(ss2[1], 2); EXPECT_EQ(ss2[1], 2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册