[Model Runner] Refactor execute_model for GPU async scheduling (#6176)

This commit is contained in:
sunxin
2026-01-28 14:19:33 +08:00
committed by GitHub
parent ce06c6dfb3
commit 27f8799f04
9 changed files with 188 additions and 62 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ class TestUpdateInputsV1(unittest.TestCase):
is_block_step = np.random.randint(0, 2, [max_bs]).astype("bool")
stop_flags = paddle.to_tensor(stop_flags)
not_need_stop = paddle.to_tensor(not_need_stop, place=paddle.CPUPlace())
not_need_stop = paddle.to_tensor(not_need_stop)
seq_lens_this_time = paddle.to_tensor(seq_lens_this_time)
seq_lens_encoder = paddle.to_tensor(seq_lens_encoder)
seq_lens_decoder = paddle.to_tensor(seq_lens_decoder)