PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.29k stars 5.61k forks source link

[Static] Set mask.stop_gradient to True in `masked_fill_` #69696

Open HydrogenSulfate opened 1 day ago

HydrogenSulfate commented 1 day ago

PR Category

User Experience

PR Types

Bug fixes

Description

Pcard-75624

masked_fill_接受的mask.stop_gradient可能会被设置为False,因此将其手动设置为True,避免后续的调用被assert检测。比较运算产生的布尔类型stop_gradient不能为False。 image

paddle-bot[bot] commented 1 day ago

你的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.