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.42-44】Add ops #66930

Conversation

Guanhuachen2003
Copy link
Contributor

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

Copy link

paddle-bot bot commented Aug 1, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@luotao1 luotao1 added contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 labels Aug 1, 2024
@Guanhuachen2003
Copy link
Contributor Author

原始pr: #66871 (已close)

@Guanhuachen2003
Copy link
Contributor Author

已完成上述修改

Copy link
Contributor

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Guanhuachen2003
Copy link
Contributor Author

这几个算子均有对应的optest单测,位于test_fake_quantize_op.py,self.check_output() 中 check_pir 默认关闭,申请豁免coverage流水线。

@luotao1 luotao1 merged commit d678aba into PaddlePaddle:develop Aug 8, 2024
31 checks passed
@@ -943,6 +943,31 @@ bool FlattenOpInferSymbolicShape(
return true;
}

bool FakeQuantizeDequantizeAbsMaxOpInferSymbolicShape(
pir::Operation *op, pir::InferSymbolicShapeContext *infer_context) {
const symbol::ShapeOrDataDimExprs &x_shape =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x_shape_or_data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants