-
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
fix test_elementwise_sub_op #60078
fix test_elementwise_sub_op #60078
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
这个算子单测失败的原因应该不是 在PIR下缺少 |
这是单测
貌似是
void MeanAllInferMeta(const MetaTensor& x, MetaTensor* out) {
out->set_dims(common::make_ddim({}));
out->set_dtype(x.dtype());
out->set_layout(x.layout());
} 都有
这里复数类型也都注册过,之前说算子的类型检查下沉到C++侧了, 是这个问题吗? 可以给点提示嘛 😆 |
这里的问题是pd_op_to_kernel_pass里面在类型提升后没有处理输出的类型,解决方案是在类型提升后再做一次 infer_meta,重新推导输出类型,目前内部同事 @chen2016013 正在开发中,可以关注下。 |
PR types
Others
PR changes
Others
Description