Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Preserve double precision when parsing FP64 REST inputs

未关闭
#4,686 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@YugShah1510 已经在做这个了。

开始于 2026年10月22日。

  • #4687 来自 @YugShah1510 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
cpp
领域
api, backend

调研方向

Read the FP64 conversion in src/rest_parser.cpp and the regression test in src/test/kfs_rest_parser_test.cpp. Check how the parsed value is stored in protobuf fp64_contents, then run the parser test with the project’s C++ test setup. Done means the test confirms 1.23456789012345 retains double precision; an open linked pull request already addresses this issue.

由索引模型根据 Issue 内容生成。

描述

Description

The KServe REST parser's FP64 handling appears to convert JSON numeric values to single-precision float using RapidJSON GetFloat() before storing them in protobuf fp64_contents, which is a double field. This loses precision for FP64 inputs.

Expected behavior

FP64 REST input values should retain double precision when parsed.

Reproduction

Send a KServe REST request with an input containing:

  • datatype: FP64
  • shape: [1]
  • data: [1.23456789012345]

The parsed value should match the original double.

Evidence

Source inspection identifies the GetFloat() conversion in src/rest_parser.cpp. A numerical check shows the value becomes 1.2345678806304932 after float32 conversion, rather than 1.23456789012345.

Test status

A regression test has been added to src/test/kfs_rest_parser_test.cpp, but the C++ test has not been executed because Bazel and Bazelisk are unavailable in the current environment.

主要语言
C++
星标
952
派生
285
平均合并
3 天 5 小时
30 天内合并 PR
45

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openvinotoolkit/model_server 的其他 Issue

查看 openvinotoolkit/model_server 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。