Skip to content

Commit 6b95a8a

Browse files
committed
fix error
1 parent e09ac3d commit 6b95a8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/paddle/fluid/tests/book/high-level-api/machine_translation/test_machine_translation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ def decode_main(use_cuda, is_sparse):
218218
init_recursive_seq_lens = [1] * batch_size
219219
init_recursive_seq_lens = [init_recursive_seq_lens, init_recursive_seq_lens]
220220

221-
init_ids = fluid.create_lod_tensor(init_ids_data,
222-
init_init_recursive_seq_lens, place)
221+
init_ids = fluid.create_lod_tensor(init_ids_data, init_recursive_seq_lens,
222+
place)
223223
init_scores = fluid.create_lod_tensor(init_scores_data,
224-
init_init_recursive_seq_lens, place)
224+
init_recursive_seq_lens, place)
225225

226226
train_data = paddle.batch(
227227
paddle.reader.shuffle(

0 commit comments

Comments
 (0)