tensorflow / tensorflow/java

API to read weights from ckpt file

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

还没有人认领这个 Issue。

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

描述

System information

  • TensorFlow version (you are using): Nightly
  • Are you willing to contribute it (Yes/No): No

Describe the feature and the current behavior/state.
This API would help in reading the weights from ckpt file. Currently, there is no such feature in the Java SDK but the same can be achieved in python via CheckPointReader.

Will this change the current API? How?
This shouldn't affect the preexisting API. It would be a simple addition over it.

Who will benefit with this feature?
I was developing a Federated Learning Application and was stuck at the issue where I was not able to get the weights from the ckpt file (Reason: No API in Java SDK) and neither could I write a signature method in tflite for the same (Reason: tflite doesn't support dynamic tensor shapes). So this would help promote active development in FL on Android clients.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先将请求的 Java SDK 能力与 Python 的 CheckPointReader 进行比较,并审查 TensorFlow 检查点权重如何为 Java 和 Android 客户端表示。完成的标准是添加一个能够从 ckpt 文件读取权重的 Java API,同时不改变现有 API,并且其行为适用于联邦学习用例。

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

评估

技术栈
java, tensorflow
领域
api, machine-learning
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

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