Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions custom_ops/xpu_ops/test/test_speculate_set_value_by_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_speculate_set_value_by_flags_and_idx():
step_idx = paddle.to_tensor(step_idx, dtype="int64")

if paddle.is_compiled_with_xpu():
out_xpu = speculate_set_value_by_flags_and_idx(
speculate_set_value_by_flags_and_idx(
pre_ids_all,
accept_tokens,
accept_num,
Expand All @@ -57,6 +57,7 @@ def test_speculate_set_value_by_flags_and_idx():
seq_lens_decoder,
step_idx,
)
out_xpu = pre_ids_all.numpy()
else:
out_xpu = speculate_set_value_by_flags_and_idx(
pre_ids_all,
Expand All @@ -69,7 +70,7 @@ def test_speculate_set_value_by_flags_and_idx():
seq_lens_decoder,
step_idx,
)
out_xpu = out_xpu.numpy()
out_xpu = out_xpu.numpy()

out_cpu = paddle.to_tensor(np.full((bs, length), -1), dtype="int64")
for i in range(bs):
Expand Down
Loading