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

【Infer Symbolic Shape BUAA No.91】Add viewshape op #66737

Merged
merged 8 commits into from
Jul 31, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ OP_SAME_OPERANDS_AND_RESULT(Trunc)
OP_SAME_OPERANDS_AND_RESULT(Trunc_)
OP_SAME_OPERANDS_AND_RESULT(Sigmoid)
OP_SAME_OPERANDS_AND_RESULT(Sigmoid_)
OP_SAME_OPERANDS_AND_RESULT(ViewShape)

bool ScaleOpInferSymbolicShape(pir::Operation *op,
pir::InferSymbolicShapeContext *infer_context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ OP_DECLARE_INFER_SYMBOLIC_SHAPE(Trunc)
OP_DECLARE_INFER_SYMBOLIC_SHAPE(Trunc_)
OP_DECLARE_INFER_SYMBOLIC_SHAPE(Sigmoid)
OP_DECLARE_INFER_SYMBOLIC_SHAPE(Sigmoid_)
OP_DECLARE_INFER_SYMBOLIC_SHAPE(ViewShape)

} // namespace paddle::dialect

Expand Down
1 change: 1 addition & 0 deletions paddle/phi/ops/yaml/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4817,6 +4817,7 @@
func : view_shape
backward : view_shape_grad
no_need_buffer : input
interfaces : paddle::dialect::InferSymbolicShapeInterface

- op : viterbi_decode
args : (Tensor potentials, Tensor transition_params, Tensor lengths, bool include_bos_eos_tag = true)
Expand Down