How to input data and recive returned results after loading the categorization model
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 928
- 派生
- 227
- PR 合并指标
- 30 天内没有已合并 PR
描述
dependency:
<groupId>org.tensorflow</groupId>
<artifactId>tensorflow-core-platform</artifactId>
<version>0.4.1</version>
</dependency>
code:
import org.{tensorflow=>tf}
val result = tf.SavedModelBundle
.load("D:\\model\\categorization","serve")
.session()
.runner()
.feed("serving_default_inputs:0", tf.create(List("....", "....")))
.fetch("StatefulPartitionedCall:0")
.run()
.get(0);
However, no any create method found within tf, why ??
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 tensorflow-core-platform 0.4.1 依赖项以及使用 SavedModelBundle、session、runner、feed 和 fetch 的 Scala 代码开始。检查 TensorFlow Java API,了解构造输入张量并获取返回结果的受支持方式;当此示例的加载、输入和输出流程完成文档记录后,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, scala, tensorflow
- 领域
- machine-learning
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100