Skip to content

Commit 3523bbe

Browse files
authored
[NPU] fix argsort op, test=develop (#36576)
* [NPU] fix argsort op, test=develop * remove debug files, test=develop * fix typo, test=develop * address review comments, test=develop
1 parent 43dcf23 commit 3523bbe

18 files changed

+171
-217
lines changed

paddle/fluid/operators/arg_max_op_xpu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#ifdef PADDLE_WITH_XPU
1616

paddle/fluid/operators/arg_min_op_npu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#include "paddle/fluid/operators/arg_min_max_op_base.h"
1616
#include "paddle/fluid/operators/npu_op_runner.h"

paddle/fluid/operators/argsort_op_npu.cc

Lines changed: 149 additions & 196 deletions
Large diffs are not rendered by default.

paddle/fluid/operators/cumsum_op_npu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#include "paddle/fluid/framework/tensor.h"
1616
#include "paddle/fluid/operators/cum_op.h"

paddle/fluid/operators/dropout_op_npu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#include <memory>
1616
#include <string>

paddle/fluid/operators/expand_v2_op_npu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#include "paddle/fluid/operators/expand_v2_op.h"
1616
#include "paddle/fluid/operators/npu_op_runner.h"

paddle/fluid/operators/huber_loss_op_npu.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
2+
23
Licensed under the Apache License, Version 2.0 (the "License");
34
you may not use this file except in compliance with the License.
45
You may obtain a copy of the License at
6+
57
http://www.apache.org/licenses/LICENSE-2.0
8+
69
Unless required by applicable law or agreed to in writing, software
710
distributed under the License is distributed on an "AS IS" BASIS,
811
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
912
See the License for the specific language governing permissions and
10-
limitations under the Licnse. */
13+
limitations under the License. */
1114

1215
#include "paddle/fluid/operators/huber_loss_op.h"
1316
#include "paddle/fluid/operators/npu_op_runner.h"

paddle/fluid/operators/interpolate_v2_op_npu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#include "paddle/fluid/operators/interpolate_v2_op.h"
1616
#include "paddle/fluid/operators/npu_op_runner.h"

paddle/fluid/operators/is_empty_op_npu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#include "paddle/fluid/operators/is_empty_op.h"
1616

paddle/fluid/operators/log_loss_op_npu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the Licnse. */
13+
limitations under the License. */
1414

1515
#include "paddle/fluid/operators/log_loss_op.h"
1616
#include <cmath>

0 commit comments

Comments
 (0)