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: patch-diff.githubusercontent.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":1},"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:026a4c7c-080c-cab4-a0de-5b3176744ecc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86CC:2EBC14:3C9155B:51F20DF:697081E5 |
| html-safe-nonce | c19fd10eac2a103ed7a8c8dee835e078e725d5ca52042071cfa95a074c0e0b59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkNDOjJFQkMxNDozQzkxNTVCOjUxRjIwREY6Njk3MDgxRTUiLCJ2aXNpdG9yX2lkIjoiMTA5NjY0ODUzOTkyMDk1NzkyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8e6c4f4ba80375a54b3e113fda79337a47508be2d5e823a3cdac1a0d01f4bd04 |
| 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/3f0f601b9d3c7fd21e77e57920a5f254dd341b786667d3ac552696e6778e856a/tensorflow/java/issues/615 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f0f601b9d3c7fd21e77e57920a5f254dd341b786667d3ac552696e6778e856a/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 | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width