Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfengsheng1999 committed Apr 17, 2023
1 parent fb55b07 commit 66fbc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/kernels/impl/dot_grad_kernel_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct DotGradFunction<DeviceContext, T, phi::funcs::EnableComplex<T>> {
DenseTensor* tensor_dy) {
VLOG(1) << "enable route";
#if defined(__NVCC__) || defined(__HIPCC__)
if (1 >= tensor_dout->dims().size()) {
if (tensor_dout->dims().size() <= 1) {
auto dout = EigenVector<T>::Flatten(*tensor_dout);

if (tensor_dx) {
Expand Down

0 comments on commit 66fbc73

Please sign in to comment.