Skip to content

Commit 488bd17

Browse files
authored
Fix OpTranslatorTest name (#60518)
* fix name * fix name * fix name * fix name
1 parent a05f195 commit 488bd17

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/ir/pir/translator/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ file(
44
"test_*.py")
55
string(REPLACE ".py" "" TEST_INTERP_CASES "${TEST_INTERP_CASES}")
66

7-
set(DISTRIBUTED_OP_TRANSLATION_TEST test_c_reduce_min_translate)
7+
set(DISTRIBUTED_OP_TRANSLATOR_TEST test_c_reduce_min_translator)
88

99
if(NOT WITH_DISTRIBUTE)
10-
list(REMOVE_ITEM TEST_INTERP_CASES ${DISTRIBUTED_OP_TRANSLATION_TEST})
10+
list(REMOVE_ITEM TEST_INTERP_CASES ${DISTRIBUTED_OP_TRANSLATOR_TEST})
1111
endif()
1212

1313
foreach(target ${TEST_INTERP_CASES})

test/ir/pir/translator/test_c_reduce_min_translate.py renamed to test/ir/pir/translator/test_c_reduce_min_translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
import unittest
1616

17-
import test_op_transcriber
17+
import test_op_translator
1818

1919
import paddle
2020
from paddle.base.layer_helper import LayerHelper
2121

2222

23-
class TestCReduceMinOpTranscriber(test_op_transcriber.TestOpTranscriber):
23+
class TestCReduceMinOpTranslator(test_op_translator.TestOpTranslator):
2424
def append_op(self):
2525
self.op_type = "c_reduce_min"
2626
x = paddle.ones(shape=(100, 2, 3), dtype='float32')

test/ir/pir/translator/test_op_transcriber.py renamed to test/ir/pir/translator/test_op_translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
paddle.enable_static()
2222

2323

24-
class TestOpTranscriber(unittest.TestCase):
24+
class TestOpTranslator(unittest.TestCase):
2525
def setUp(self):
2626
self.place = core.Place()
2727
self.place.set_place(paddle.CPUPlace())

0 commit comments

Comments
 (0)