diff --git a/paddle/fluid/operators/metrics/accuracy_op_npu.cc b/paddle/fluid/operators/metrics/accuracy_op_npu.cc index 10b28b532b1105b44301085aaa02e1350ce5722a..4ffcbaf55314a46888e15572e8477054b23ae2bb 100644 --- a/paddle/fluid/operators/metrics/accuracy_op_npu.cc +++ b/paddle/fluid/operators/metrics/accuracy_op_npu.cc @@ -9,7 +9,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -#ifdef PADDLE_WITH_ASCEND_CL #include #include @@ -119,6 +118,7 @@ namespace ops = paddle::operators; REGISTER_OP_NPU_KERNEL( accuracy, ops::AccuracyNPUKernel, + ops::AccuracyNPUKernel, ops::AccuracyNPUKernel, ops::AccuracyNPUKernel); -#endif