NnOps topK not allowing variadic args for TopK.Options

未關閉
#615 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
java
領域
api

研究方向

檢查 tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java 第 3109-3131 行附近的內容,並與第 3154-3157 行附近的變體進行比較。重現回報的 tf.nn.topK(input, k) 呼叫,並確認該方法接受預期的 options 形式,且可透過 Java API 找到。

由索引模型根據 Issue 內容生成。

描述

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

Describe the current behavior
In talking with @karllessard, we saw https://github.com/tensorflow/java/blob/e9c854fba1e4c175de7cc8df0fb4185b09dab229/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java#L3109-L3131 that it currently accepts TopK.Options[] options

Describe the expected behavior
It should accept variadic argument TopK.Options... options just like its variant https://github.com/tensorflow/java/blob/e9c854fba1e4c175de7cc8df0fb4185b09dab229/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java#L3154-L3157

Code to reproduce the issue
Calling tf.nn.topK(input, k) would be a method not found

Other info / logs

Method topK(org.tensorflow.op.core.Placeholder,org.tensorflow.op.core.Constant) cannot be found on type org.tensorflow.op.NnOps
主要語言
Java
星號
928
分支
227
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

tensorflow/java 的其他 Issue

查看 tensorflow/java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。