-
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
【Hackathon 5th No.103】 fix the bug in moving fc_mkldnn to phi -part #59531
Conversation
paddle/phi/api/yaml/op_compat.yaml
Outdated
extra : | ||
[bool @ALL_KERNELS_MUST_COMPUTE_RUNTIME_SHAPE@ = true] | ||
attrs : [bool use_mkldnn = false, bool use_quantizer = false, str mkldnn_data_type = "float32", float Scale_in = 1.0f, "float[] Scale_weights = {1.0f}", float Scale_out = 1.0f, bool force_fp32_output = false] |
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.
ALL_KERNELS_MUST_COMPUTE_RUNTIME_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.
Done
@@ -100,7 +100,6 @@ const std::unordered_map<std::string, ExtraAttrPropertySet> | |||
{"mkldnn_data_type", ExtraAttrProperty::ONEDNN}, | |||
{"scale_x", ExtraAttrProperty::ONEDNN}, | |||
{"scale_y", ExtraAttrProperty::ONEDNN}, | |||
{"scale_out", ExtraAttrProperty::ONEDNN}, |
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.
这个,在下面有一个Scale_out,所以删除了scale_out
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
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.
paddle/phi/kernels/fusion/gpu/fc_kernel.cu
paddle/phi/kernels/fusion/onednn/fc_kernel.cc
paddle/phi/kernels/fusion/cpu/fc_kernel.cc
FC有三个kernel,都需要同步修改一下~
cpu/gpu走的都是fc_kernel_impl.h,不需要改了哈~ |
…addlePaddle#59531) * try to fix the bug in fc_mkldnn * fix the missing attr bug * fix the parameters bug * remove the paramars in pir * roback and add attr * add the scale_out --------- Co-authored-by: zeroRains <linjunlu@zerorains.com>
PR types
Bug fixes
PR changes
Others
Description
fix the bug in this pr #58777