Skip to content

Commit 45d124d

Browse files
committed
feat(pir): reg nop
1 parent 8a79416 commit 45d124d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

paddle/phi/api/yaml/op_compat.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,12 +2389,6 @@
23892389
outputs :
23902390
out : Out
23912391

2392-
- op : nop
2393-
inputs :
2394-
{x: X}
2395-
outputs :
2396-
out : Out
2397-
23982392
- op : norm
23992393
backward : norm_grad
24002394
inputs :

test/ir/pir/translator/test_nop_translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
class TestNopTranslator(test_op_translator.TestOpTranslator):
2424
def append_op(self):
2525
self.op_type = "nop"
26-
x = paddle.ones(shape=(1), dtype='float32')
27-
out = paddle.ones(shape=(1), dtype='float32')
26+
x = paddle.ones(shape=(1,), dtype='float32')
27+
out = paddle.ones(shape=(1,), dtype='float32')
2828
helper = LayerHelper(self.op_type)
2929
helper.append_op(
3030
type=self.op_type,

0 commit comments

Comments
 (0)