Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiu committed Mar 30, 2021
1 parent f2ed485 commit d60c144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/fluid/tests/unittests/npu/test_memcpy_op_npu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand All @@ -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',
Expand Down

0 comments on commit d60c144

Please sign in to comment.