-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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.42-44】Add ops #66930
【Infer Symbolic Shape BUAA No.42-44】Add ops #66930
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/unary_infer_sym.cc
Outdated
Show resolved
Hide resolved
原始pr: #66871 (已close) |
paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc
Outdated
Show resolved
Hide resolved
paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc
Outdated
Show resolved
Hide resolved
paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc
Outdated
Show resolved
Hide resolved
paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/unary_infer_sym.cc
Outdated
Show resolved
Hide resolved
已完成上述修改 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
这几个算子均有对应的optest单测,位于test_fake_quantize_op.py,self.check_output() 中 check_pir 默认关闭,申请豁免coverage流水线。 |
@@ -943,6 +943,31 @@ bool FlattenOpInferSymbolicShape( | |||
return true; | |||
} | |||
|
|||
bool FakeQuantizeDequantizeAbsMaxOpInferSymbolicShape( | |||
pir::Operation *op, pir::InferSymbolicShapeContext *infer_context) { | |||
const symbol::ShapeOrDataDimExprs &x_shape = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x_shape_or_data
PR Category
CINN
PR Types
Others
Description
add fake_quantize_dequantize_abs_max&&fake_quantize_dequantize_moving_average_abs_max&&fake_quantize_moving_average_abs_max ops