2nd-batch-26to29-修复数值类型和精度的错误问题 by ApricityXX · Pull Request #75441 · PaddlePaddle/Paddle
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
第二批-编号26、27、28、29(共4处)
- 函数名为
as_float16,意图是将表达式转换为float16类型的值。但是其类型检查调用的是type().is_bfloat16() - 移除
CINN_NOT_IMPLEMENTED,替换为明确的异常抛出,确保所有不支持的类型都给出清晰错误信息。 - 根据原始数据类型的位宽和类型构造对应的
cinn_type_t,并传入正确的num_asterisks=1表示一级指针。 - 修复
cinn_type_of<bfloat16*>()的返回值从错误的cinn_float64_t()为正确的cinn_bfloat16_t(1)
你的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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters