Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbt78 committed Jan 3, 2024
1 parent 8ebf9a2 commit bb4d411
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 29 deletions.
4 changes: 1 addition & 3 deletions paddle/phi/kernels/gpu/nuclear_norm_grad_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ PD_REGISTER_KERNEL(nuclear_norm_grad,
ALL_LAYOUT,
phi::NuclearNormGradKernel,
float,
double,
phi::dtype::float16,
phi::dtype::bfloat16) {}
double) {}
10 changes: 2 additions & 8 deletions paddle/phi/kernels/gpu/nuclear_norm_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,5 @@

#include "paddle/phi/kernels/impl/nuclear_norm_kernel_impl.h"

PD_REGISTER_KERNEL(nuclear_norm,
GPU,
ALL_LAYOUT,
phi::NuclearNormKernel,
float,
double,
phi::dtype::float16,
phi::dtype::bfloat16) {}
PD_REGISTER_KERNEL(
nuclear_norm, GPU, ALL_LAYOUT, phi::NuclearNormKernel, float, double) {}
10 changes: 2 additions & 8 deletions paddle/phi/kernels/gpu/p_norm_grad_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,5 @@ void PNormGradKernel(const Context& dev_ctx,
}
}
} // namespace phi
PD_REGISTER_KERNEL(p_norm_grad,
GPU,
ALL_LAYOUT,
phi::PNormGradKernel,
float,
double,
phi::dtype::float16,
phi::dtype::bfloat16) {}
PD_REGISTER_KERNEL(
p_norm_grad, GPU, ALL_LAYOUT, phi::PNormGradKernel, float, double) {}
9 changes: 1 addition & 8 deletions paddle/phi/kernels/gpu/p_norm_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,4 @@ void PNormKernel(const Context& dev_ctx,
}
} // namespace phi

PD_REGISTER_KERNEL(p_norm,
GPU,
ALL_LAYOUT,
phi::PNormKernel,
float,
double,
phi::dtype::float16,
phi::dtype::bfloat16) {}
PD_REGISTER_KERNEL(p_norm, GPU, ALL_LAYOUT, phi::PNormKernel, float, double) {}
2 changes: 0 additions & 2 deletions paddle/phi/kernels/impl/nuclear_norm_kernel_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,5 @@ void NuclearNormKernel(const Context& dev_ctx,
phi::SumKernel<T, Context>(
dev_ctx, singular_tensor, {-1}, singular_tensor.dtype(), keepdim, out);
}

std::cout << "sum_grad.dims():" << singular_tensor.dims() << std::endl;
}
} // namespace phi

0 comments on commit bb4d411

Please sign in to comment.