Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbopd committed Jan 9, 2024
1 parent f7c6eed commit 5ad04bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ bool InferSymbolicShapeElementWiseBinary(
pir::OpResult res = op->result(0);
symbol::ShapeOrDataDimExprs shape_data{shapes, data};
shape_analysis->SetShapeOrDataForValue(res, shape_data);
op->set_attribute(
"symbolic_shape",
pir::shape::SymbolAttribute::get(pir::IrContext::Instance(), shape_data));
return true;
}

Expand Down
1 change: 0 additions & 1 deletion paddle/fluid/pir/dialect/operator/ir/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,6 @@
func : softmax
inplace : (x -> out)
backward : softmax_grad
interfaces : paddle::dialect::InferSymbolicShapeInterface

- op : split
args : (Tensor x, IntArray sections, Scalar(int) axis)
Expand Down

0 comments on commit 5ad04bd

Please sign in to comment.