From d60c1444765d50710c75430e946dca73ca901e6e Mon Sep 17 00:00:00 2001 From: zhiqiu Date: Tue, 30 Mar 2021 03:59:31 +0000 Subject: [PATCH] fix typo --- python/paddle/fluid/tests/unittests/npu/test_memcpy_op_npu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/npu/test_memcpy_op_npu.py b/python/paddle/fluid/tests/unittests/npu/test_memcpy_op_npu.py index 1905976222897..63c4fb8e5885e 100755 --- a/python/paddle/fluid/tests/unittests/npu/test_memcpy_op_npu.py +++ b/python/paddle/fluid/tests/unittests/npu/test_memcpy_op_npu.py @@ -63,7 +63,7 @@ def get_prog(self): outputs={"Out": cpu_var_name}, attrs={ "shape": [10, 10], - "dtype": npu_var.dtype, + "dtype": cpu_var.dtype, "value": 0.0, "place_type": 2 }) @@ -84,7 +84,7 @@ def test_npu_cpoy_to_cpu(self): self.assertTrue(np.allclose(npu_, cpu_)) self.assertTrue(np.allclose(cpu_, np.ones((10, 10)))) - def test_cpu_cpoy_gpu(self): + def test_cpu_cpoy_npu(self): main_program, npu_var, cpu_var = self.get_prog() main_program.global_block().append_op( type='memcpy',