提交 0c99cd7b 编写于 作者: F fengjiayi

fix errors in sequence_padding_test

上级 bf99396a
...@@ -41,7 +41,7 @@ void TestSequencePadding(const paddle::framework::LoD& lod, ...@@ -41,7 +41,7 @@ void TestSequencePadding(const paddle::framework::LoD& lod,
if (paddle::platform::is_cpu_place(*place)) { if (paddle::platform::is_cpu_place(*place)) {
seq = cpu_seq; seq = cpu_seq;
} else { } else {
TensorCopy(cpu_seq, *place, *context, &seq); TensorCopySync(cpu_seq, *place, &seq);
seq.set_lod(lod); seq.set_lod(lod);
} }
...@@ -64,7 +64,7 @@ void TestSequencePadding(const paddle::framework::LoD& lod, ...@@ -64,7 +64,7 @@ void TestSequencePadding(const paddle::framework::LoD& lod,
if (paddle::platform::is_cpu_place(*place)) { if (paddle::platform::is_cpu_place(*place)) {
cpu_seq_back = seq_back; cpu_seq_back = seq_back;
} else { } else {
TensorCopy(seq_back, paddle::platform::CPUPlace(), *context, &cpu_seq_back); TensorCopySync(seq_back, paddle::platform::CPUPlace(), &cpu_seq_back);
cpu_seq_back.set_lod(lod); cpu_seq_back.set_lod(lod);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册