[BUG] numeric_limits for f16 inherits storage-type return values
维护者通常 5 天内回复
还没有人认领这个 Issue。
评估
调研方向
打开 cpp/base/f16.hpp 并阅读 std::numeric_limits<base::f16> 特化:它派生自 numeric_limits<storage_type>,并且只重写 quiet_NaN()/signaling_NaN()。为 min()、lowest()、max()、epsilon() 和 round_error() 添加返回 base::f16 的重写,从 storage_type 的基类实现进行转换。由于没有报告调用方,请在 cpp 测试套件中添加一个 static_assert 或小型 C++ 测试,断言这些成员返回 base::f16;完成意味着它能编译并且断言通过。
由索引模型根据 Issue 内容生成。
描述
Affected code
cpp/base/f16.hpp, std::numeric_limits<base::f16<T>>
Behavior
The specialization derives from std::numeric_limits<base::f16<T>::storage_type> and overrides only quiet_NaN() and signaling_NaN() to return base::f16<T>. Other value-returning members such as min(), lowest(), max(), epsilon(), and round_error() are inherited with the storage type as their return type, rather than base::f16<T> as required by the numeric_limits<T> interface. This makes the public specialization's signatures inconsistent with its advertised type even if an implicit conversion is available at a call site.
This is based on the visible specialization; no C++ build or test was run. There is no tracked caller demonstrating the downstream compile/runtime impact.
- 主要语言
- C++
- 星标
- 9.3k
- 派生
- 724
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
activeloopai/deeplake 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 70/100
activeloopai/deeplake#3165 · 1 条评论 ·
维护者通常 5 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 46/100
activeloopai/deeplake#3070 · 2 条评论 · 1 个 reaction ·
维护者通常 5 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 30/100
activeloopai/deeplake#3059 ·
维护者通常 5 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 24/100
activeloopai/deeplake#3042 · 1 条评论 ·
维护者通常 5 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 18/100
activeloopai/deeplake#2985 · 5 条评论 ·
维护者通常 5 天内回复
查看 activeloopai/deeplake 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
scp-fs2open/fs2open.github.com#7953 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
SteveMacenski/slam_toolbox#907 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
HansKristian-Work/dxil-spirv#341 ·
维护者通常 1 天内回复