Skip to content

Commit

Permalink
fix build cinn pass check error (#58943)
Browse files Browse the repository at this point in the history
  • Loading branch information
phlrain authored Nov 14, 2023
1 parent 815b656 commit 816b34e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paddle/fluid/pir/transforms/build_cinn_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ bool IsSupportCinn(pir::Operation* op) {
if (op->isa<paddle::dialect::FullOp>()) {
auto out = op->result(0);
// return IsSuportCinn( out.first_use().owern() )
if (out.first_use().owner()->isa<paddle::dialect::UniformOp>()) {
if (out.use_count() > 0 &&
out.first_use().owner()->isa<paddle::dialect::UniformOp>()) {
return false;
}
}
Expand Down

0 comments on commit 816b34e

Please sign in to comment.