### What this PR does / why we need it? unify logic between aclgraph and torchair. This is a cherry-pick of https://github.com/vllm-project/vllm-ascend/pull/3560 Signed-off-by: zouyida2052 <zouyida2002@gmail.com>
### What this PR does / why we need it? unify logic between aclgraph and torchair. This is a cherry-pick of https://github.com/vllm-project/vllm-ascend/pull/3560 Signed-off-by: zouyida2052 <zouyida2002@gmail.com>