[Perf][Qwen25_VL] Avoid triggering CPU synchronization in ViT's attn forward #4442
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
优化ViT中attn前向传播后的CPU同步。修改前后相同case输出一致。

修改前:
['图中的文物是一件佛像,具体来说是释迦牟尼佛的造像。根据其风格和装饰特点,这件佛像是唐代(公元618年-907年)的作品。唐代是中国历史上一个非常重要的时期,佛教艺术在此期间达到了极高的水平,这件佛像正是这一时期的典型代表之一。']修改后:
['图中的文物是一件佛像,具体来说是释迦牟尼佛的造像。根据其风格和装饰特点,这件佛像是唐代(公元618年-907年)的作品。唐代是中国历史上一个非常重要的时期,佛教艺术在此期间达到了极高的水平,这件佛像正是这一时期的典型代表之一。']