Skip to content

Commit

Permalink
fix empyt bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zyfncg committed Feb 26, 2022
1 parent d773761 commit 98fa938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/tests/kernels/test_creation_dev_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TEST(DEV_API, empty) {
dev_ctx.Init();

// 2. test API
auto out = phi::Empty<float>(dev_ctx, {3, 2}, phi::DataType::INT32);
auto out = phi::Empty<int>(dev_ctx, {3, 2}, phi::DataType::INT32);

// 3. check result
ASSERT_EQ(out.dims().size(), 2);
Expand Down

0 comments on commit 98fa938

Please sign in to comment.