Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix_seed_op #58552

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions paddle/fluid/pir/transforms/pd_op_to_kernel_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,7 @@ phi::KernelKey GetKernelKey(
if (op->isa<paddle::dialect::SeedOp>()) {
VLOG(6) << "SeedOp doesn't need a kernel";
auto backend = paddle::experimental::ParseBackend(place);
return {backend,
phi::DataLayout::ANY,
TransToPhiDataType(
op->result(0).type().dyn_cast<DenseTensorType>().dtype())};
return {backend, phi::DataLayout::ANY, phi::DataType::INT32};
}

if (op->isa<paddle::dialect::FullWithTensorOp>()) {
Expand Down
1 change: 1 addition & 0 deletions test/white_list/new_ir_op_test_no_check_list
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test_exponential_op
test_seed_op
1 change: 1 addition & 0 deletions test/white_list/new_ir_op_test_white_list
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ test_roi_pool_op
test_rrelu_op
test_scale_op
test_searchsorted_op
test_seed_op
test_segment_ops
test_segment_ops_static_build
test_selu_op
Expand Down