NnOps topK not allowing variadic args for TopK.Options
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
Research direction
Inspect tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java around lines 3109-3131 and compare the nearby variant at lines 3154-3157. Reproduce the reported tf.nn.topK(input, k) call and verify that the method accepts the expected options form and can be found by the Java API.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 928
- Forks
- 227
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tensorflow/java
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
tensorflow/java#653 · 1 comment · 4 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
tensorflow/java#621 · 4 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
tensorflow/java#617 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
tensorflow/java#614 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
tensorflow/java#602 · 7 comments ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100