Title: NnOps topK not allowing variadic args for TopK.Options · Issue #615 · tensorflow/java · GitHub
Open Graph Title: NnOps topK not allowing variadic args for TopK.Options · Issue #615 · tensorflow/java
X Title: NnOps topK not allowing variadic args for TopK.Options · Issue #615 · tensorflow/java
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 @k...
Open Graph 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...
X 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...
Opengraph URL: https://github.com/tensorflow/java/issues/615
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NnOps topK not allowing variadic args for TopK.Options","articleBody":"\u003cem\u003ePlease make sure that this is a bug. As per our [GitHub Policy](https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md), we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template\u003c/em\u003e\n\n\n**Describe the current behavior**\nIn 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`\n\n**Describe the expected behavior**\nIt 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\n\n**Code to reproduce the issue**\nCalling `tf.nn.topK(input, k)` would be a method not found\n\n**Other info / logs**\n```text\nMethod topK(org.tensorflow.op.core.Placeholder,org.tensorflow.op.core.Constant) cannot be found on type org.tensorflow.op.NnOps\n```\n","author":{"url":"https://github.com/zz-x404","@type":"Person","name":"zz-x404"},"datePublished":"2025-07-31T17:55:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/615/java/issues/615"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2e717cd-0738-048b-f145-dcbb421e2a4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFCC:3A6082:8AA72B:B360D5:696AF2EA |
| html-safe-nonce | 385516988adc4189f74d54cbcac00bb4f84f6b9ddfc4cfb81d4aaf8ed6bc5092 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkNDOjNBNjA4Mjo4QUE3MkI6QjM2MEQ1OjY5NkFGMkVBIiwidmlzaXRvcl9pZCI6IjUzNjAxNzU1MzI4NTI1NzI5MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 46b6cb3acbc10522d74e8797bbd087aa7633bc3fa2c34e1aca2d34ac7b7e5f1f |
| hovercard-subject-tag | issue:3281312461 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tensorflow/java/615/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52c6aa62111bd8c22582555513f0ac476ceedf423f46a11bd6832768abb3008e/tensorflow/java/issues/615 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52c6aa62111bd8c22582555513f0ac476ceedf423f46a11bd6832768abb3008e/tensorflow/java/issues/615 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zz-x404 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/tensorflow/java git https://github.com/tensorflow/java.git |
| octolytics-dimension-user_id | 15658638 |
| octolytics-dimension-user_login | tensorflow |
| octolytics-dimension-repository_id | 207384523 |
| octolytics-dimension-repository_nwo | tensorflow/java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 207384523 |
| octolytics-dimension-repository_network_root_nwo | tensorflow/java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width