Skip to content

Commit f7bf793

Browse files
committed
Fix ci
1 parent cbba545 commit f7bf793

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

paddle/phi/kernels/cpu/lookup_table_grad_kernel.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@
1414

1515
#include <string>
1616
#include <vector>
17-
1817
#include "paddle/phi/core/dense_tensor.h"
18+
#include "paddle/phi/backends/cpu/cpu_context.h"
1919
#include "paddle/phi/core/enforce.h"
20+
#include "paddle/phi/core/kernel_registry.h"
2021
#include "paddle/phi/kernels/funcs/blas/blas.h"
21-
2222
#include "paddle/phi/kernels/funcs/eigen/common.h"
2323

24-
#include "paddle/phi/backends/cpu/cpu_context.h"
25-
#include "paddle/phi/core/kernel_registry.h"
26-
2724
namespace phi {
2825

26+
constexpr int64_t kNoPadding = -1;
27+
2928
template <typename T, typename Context>
3029
void LookupTableGradKernel(const Context &dev_ctx,
3130
const DenseTensor &w,

paddle/phi/kernels/cpu/lookup_table_kernel.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
#include "paddle/phi/core/dense_tensor.h"
1818
#include "paddle/phi/core/enforce.h"
1919
#include "paddle/phi/kernels/funcs/blas/blas.h"
20-
2120
#include "paddle/phi/kernels/funcs/eigen/common.h"
22-
2321
#include "paddle/phi/backends/cpu/cpu_context.h"
2422
#include "paddle/phi/core/kernel_registry.h"
2523

paddle/phi/kernels/gpu/lookup_table_grad_kernel.cu

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
1415
#include "paddle/phi/kernels/gpu/lookup_table_grad_kernel.h"
1516
#include "paddle/phi/backends/gpu/gpu_primitives.h"
1617
#include "paddle/phi/common/memory_utils.h"
17-
1818
#include "paddle/phi/core/kernel_registry.h"
1919
#include "paddle/phi/core/mixed_vector.h"
20-
2120
#include "paddle/phi/core/selected_rows.h"
2221
#include "paddle/phi/kernels/funcs/eigen/common.h"
2322

paddle/phi/kernels/gpu/lookup_table_grad_kernel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "paddle/phi/core/dense_tensor.h"
1818
#include "paddle/phi/core/device_context.h"
19-
2019
#include "paddle/phi/core/selected_rows.h"
2120

2221
namespace phi {

paddle/phi/kernels/gpu/lookup_table_kernel.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
1415
#include "paddle/phi/kernels/gpu/lookup_table_kernel.h"
1516
#include "paddle/phi/backends/gpu/gpu_primitives.h"
1617
#include "paddle/phi/common/memory_utils.h"
1718
#include "paddle/phi/core/kernel_registry.h"
18-
1919
#include "paddle/phi/core/mixed_vector.h"
2020
#include "paddle/phi/core/selected_rows.h"
2121
#include "paddle/phi/kernels/funcs/eigen/common.h"

paddle/phi/kernels/gpu/lookup_table_kernel.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616

1717
#include <string>
1818
#include <vector>
19-
2019
#include "paddle/phi/core/dense_tensor.h"
21-
2220
#include "paddle/phi/core/enforce.h"
2321

2422
namespace phi {

0 commit comments

Comments
 (0)