-
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 No.122】【BUAA】Add batch_fc #67348
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
PADDLE_ENFORCE_EQ( | ||
input_dims[0], | ||
w_dims[0], | ||
common::errors::InvalidArgument( | ||
"Input.dim[0] and W.dim[0] of BatchFcOp should be same.")); | ||
PADDLE_ENFORCE_EQ( | ||
input_dims[2], | ||
w_dims[1], | ||
common::errors::InvalidArgument( | ||
"Input.dim[2] and W.dim[1] of BatchFcOp should be same.")); | ||
PADDLE_ENFORCE_EQ(bias_dims[0], | ||
input_dims[0], | ||
common::errors::InvalidArgument( | ||
"Bias.dim[0] should be same as input.dim[0].")); | ||
PADDLE_ENFORCE_EQ(bias_dims[1], | ||
w_dims[2], | ||
common::errors::InvalidArgument( | ||
"Bias.dim[1] should be same as input.dim[2].")); |
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.
修改为添加约束
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.
收到
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
PR Category
CINN
PR Types
Others
Description
Add BatchFcOpInferSymbolicShape