Skip to content

Commit 9b3e053

Browse files
committed
fix review comment
1 parent 741380c commit 9b3e053

File tree

6 files changed

+93
-1379
lines changed

6 files changed

+93
-1379
lines changed

paddle/fluid/operators/load_combine_op_npu.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ 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. */
1414

15-
#ifdef PADDLE_WITH_ASCEND_CL
1615
#include "paddle/fluid/operators/load_combine_op.h"
1716

1817
namespace ops = paddle::operators;
@@ -24,4 +23,3 @@ REGISTER_OP_NPU_KERNEL(
2423
ops::LoadCombineOpKernel<paddle::platform::NPUDeviceContext, int>,
2524
ops::LoadCombineOpKernel<paddle::platform::NPUDeviceContext, int8_t>,
2625
ops::LoadCombineOpKernel<paddle::platform::NPUDeviceContext, int64_t>);
27-
#endif

paddle/fluid/operators/load_op_npu.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
1+
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
22
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
@@ -12,7 +12,6 @@ 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. */
1414

15-
#ifdef PADDLE_WITH_ASCEND_CL
1615
#include "paddle/fluid/operators/load_op.h"
1716

1817
namespace ops = paddle::operators;
@@ -23,4 +22,3 @@ REGISTER_OP_NPU_KERNEL(
2322
ops::LoadOpKernel<paddle::platform::NPUDeviceContext, int>,
2423
ops::LoadOpKernel<paddle::platform::NPUDeviceContext, int8_t>,
2524
ops::LoadOpKernel<paddle::platform::NPUDeviceContext, int64_t>);
26-
#endif

paddle/fluid/operators/save_combine_op_npu.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ 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. */
1414

15-
#ifdef PADDLE_WITH_ASCEND_CL
1615
#include "paddle/fluid/operators/save_combine_op.h"
1716

1817
namespace ops = paddle::operators;
@@ -23,4 +22,3 @@ REGISTER_OP_NPU_KERNEL(
2322
ops::SaveCombineOpKernel<paddle::platform::NPUDeviceContext, double>,
2423
ops::SaveCombineOpKernel<paddle::platform::NPUDeviceContext, int>,
2524
ops::SaveCombineOpKernel<paddle::platform::NPUDeviceContext, int64_t>);
26-
#endif

paddle/fluid/operators/save_op_npu.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ 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. */
1414

15-
#ifdef PADDLE_WITH_ASCEND_CL
1615
#include "paddle/fluid/operators/save_op.h"
1716
#include "paddle/fluid/platform/float16.h"
1817

@@ -27,4 +26,3 @@ REGISTER_OP_NPU_KERNEL(
2726
ops::SaveOpKernel<paddle::platform::NPUDeviceContext, int64_t>,
2827
ops::SaveOpKernel<paddle::platform::NPUDeviceContext,
2928
paddle::platform::float16>);
30-
#endif

0 commit comments

Comments
 (0)