Fix segmentfault caused by setting fix_seed_offset on XPU.
Before retriving seed_offset, memcpy it from xpu to cpu.
Cast attention_mask to fp32 if necessary.
你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.
PR Category
Others
PR Types
Bug fixes
Description
Fix segmentfault caused by setting fix_seed_offset on XPU. Before retriving seed_offset, memcpy it from xpu to cpu. Cast attention_mask to fp32 if necessary.