tensorflow / tensorflow/java

How to convert signed values into TUint8?

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

还没有人认领这个 Issue。

主要语言
Java
星标
928
派生
227
PR 合并指标
30 天内没有已合并 PR

描述

TUint8 represents an unsigned 8-bit value. Java doesn't support unsigned values natively, so I was hoping that the the API would provide a mechanism for convert signed types (like int) into an unsigned byte.

Are we supposed to use an external library like https://guava.dev/releases/29.0-jre/api/docs/com/google/common/primitives/UnsignedBytes.html?

Either way, I encourage you to link to the mechanism of choice from the Javadoc for TUint8 to improve API "discoverability". Thank you.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先定位 TUint8 API 并查看其现有的 Javadoc。确定项目支持或推荐哪种 signed 到 unsigned 的转换机制,然后从 TUint8 文档链接到该机制,并验证 Javadoc 是否能正确渲染。

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

评估

技术栈
java
领域
documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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