Skip to content

Commit 6d21f41

Browse files
committed
fix
1 parent f150df3 commit 6d21f41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastdeploy/model_executor/xpu_pre_and_post_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def xpu_pre_process(
305305
# prefill does not use cudagraph, inplace copy is not needed
306306
xpu_forward_meta.slot_mapping_enc = slot_mapping_enc
307307
if use_cudagraph and forward_meta is not None:
308-
xpu_forward_meta.slot_mapping_dec.copy_(slot_mapping_dec)
308+
xpu_forward_meta.slot_mapping_dec.copy_(slot_mapping_dec, False)
309309
else:
310310
xpu_forward_meta.slot_mapping_dec = slot_mapping_dec
311311

0 commit comments

Comments
 (0)