Skip to content

Commit

Permalink
fix elementwise_mod UT error *test=kunlun
Browse files Browse the repository at this point in the history
  • Loading branch information
runzhech committed Apr 26, 2022
1 parent 9691f86 commit ba70104
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions paddle/fluid/platform/device/xpu/xpu1_op_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ XPUOpMap& get_kl1_ops() {
XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"elementwise_min_grad",
XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"elementwise_mod",
XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"elementwise_min",
XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"elementwise_mul_grad",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def init_input_output(self):

class TestRemainderOp(unittest.TestCase):
def test_dygraph(self):
with fluid.dygraph.guard(fluid.XPUPlace(0)):
with fluid.dygraph.guard():
np_x = np.random.rand(22, 128, 3).astype('int64')
np_y = np.random.rand(22, 128, 3).astype('int64')
x = paddle.to_tensor(np_x)
Expand Down

0 comments on commit ba70104

Please sign in to comment.