Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/ir/pir/translator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ file(
"test_*.py")
string(REPLACE ".py" "" TEST_INTERP_CASES "${TEST_INTERP_CASES}")

set(DISTRIBUTED_OP_TRANSLATION_TEST test_c_reduce_min_translate)
set(DISTRIBUTED_OP_TRANSLATOR_TEST test_c_reduce_min_translator)

if(NOT WITH_DISTRIBUTE)
list(REMOVE_ITEM TEST_INTERP_CASES ${DISTRIBUTED_OP_TRANSLATION_TEST})
list(REMOVE_ITEM TEST_INTERP_CASES ${DISTRIBUTED_OP_TRANSLATOR_TEST})
endif()

foreach(target ${TEST_INTERP_CASES})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

import unittest

import test_op_transcriber
import test_op_translator

import paddle
from paddle.base.layer_helper import LayerHelper


class TestCReduceMinOpTranscriber(test_op_transcriber.TestOpTranscriber):
class TestCReduceMinOpTranslator(test_op_translator.TestOpTranslator):
def append_op(self):
self.op_type = "c_reduce_min"
x = paddle.ones(shape=(100, 2, 3), dtype='float32')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
paddle.enable_static()


class TestOpTranscriber(unittest.TestCase):
class TestOpTranslator(unittest.TestCase):
def setUp(self):
self.place = core.Place()
self.place.set_place(paddle.CPUPlace())
Expand Down