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

编译报错PD_VISIT_XPU_CONV_TYPES #71236

Open
linht12 opened this issue Feb 22, 2025 · 1 comment
Open

编译报错PD_VISIT_XPU_CONV_TYPES #71236

linht12 opened this issue Feb 22, 2025 · 1 comment
Assignees
Labels

Comments

@linht12
Copy link

linht12 commented Feb 22, 2025

问题描述 Please describe your issue

/work/code/Paddle/Paddle/paddle/phi/kernels/xpu/conv_grad_kernel.cc: In function ‘void phi::Conv3DGradKernel(const Context&, const phi::DenseTensor&, const phi::DenseTensor&, const phi::DenseTensor&, const std::vector&, const std::vector&, const string&, int, const std::vector&, const string&, phi::DenseTensor*, phi::DenseTensor*)’:
/work/code/Paddle/Paddle/paddle/phi/kernels/xpu/conv_grad_kernel.cc:295:3: error: ‘PD_VISIT_XPU_CONV_TYPES’ was not declared in this scope
PD_VISIT_XPU_CONV_TYPES(XPUType, fc_calc_type, "conv3d_grad", [&] {
^~~~~~~~~~~~~~~~~~~~~~~
/work/code/Paddle/Paddle/paddle/phi/kernels/xpu/conv_grad_kernel.cc:295:3: error: expected ‘}’ at end of input
/work/code/Paddle/Paddle/paddle/phi/kernels/xpu/conv_grad_kernel.cc:222:49: note: to match this ‘{’
DenseTensor* filter_grad) {
^
/work/code/Paddle/Paddle/paddle/phi/kernels/xpu/conv_grad_kernel.cc: At global scope:
/work/code/Paddle/Paddle/paddle/phi/kernels/xpu/conv_grad_kernel.cc:295:3: error: expected ‘}’ at end of input
PD_VISIT_XPU_CONV_TYPES(XPUType, fc_calc_type, "conv3d_grad", [&] {
^~~~~~~~~~~~~~~~~~~~~~~
/work/code/Paddle/Paddle/paddle/phi/kernels/xpu/conv_grad_kernel.cc:27:15: note: to match this ‘{’
namespace phi {
^
make[2]: *** [paddle/phi/CMakeFiles/phi_core.dir/build.make:5088: paddle/phi/CMakeFiles/phi_core.dir/kernels/xpu/conv_grad_kernel.cc.o] Error 1

@Wangzheee
Copy link
Contributor

请问编译使用的环境、paddle版本、和编译命令是什么呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants