Title: Simplify generic parameterization on some operations · Issue #176 · tensorflow/java · GitHub
Open Graph Title: Simplify generic parameterization on some operations · Issue #176 · tensorflow/java
X Title: Simplify generic parameterization on some operations · Issue #176 · tensorflow/java
Description: I'm working on the reified generation for the Kotlin API, and I'm noticing that lots of methods have unnecessary type parameters that makes the reified usage much less nice (since you have to specify all type parameters if you specify on...
Open Graph Description: I'm working on the reified generation for the Kotlin API, and I'm noticing that lots of methods have unnecessary type parameters that makes the reified usage much less nice (since you have to speci...
X Description: I'm working on the reified generation for the Kotlin API, and I'm noticing that lots of methods have unnecessary type parameters that makes the reified usage much less nice (since you have ...
Opengraph URL: https://github.com/tensorflow/java/issues/176
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Simplify generic parameterization on some operations","articleBody":"I'm working on the `reified` generation for the Kotlin API, and I'm noticing that lots of methods have unnecessary type parameters that makes the `reified` usage much less nice (since you have to specify all type parameters if you specify one). The best example is probably `cast`, which has the signiture:\r\n```java\r\n\u003cU extends TType, T extends TType\u003e Cast\u003cU\u003e cast(Operand\u003cT\u003e x, Class\u003cU\u003e DstT, Cast.Options... options)\r\n```\r\n\r\n`T` is completely unnecessary and could be replaced with `?` without issue, but it prevents `cast\u003cTInx32\u003e(x)` usage from Kotlin. This shows up in a number of Ops, mostly with the unnecessary type parameters on the input. It essentially needs a \"is this type param only bounded by TType and only used on inputs\" check.\r\n\r\n_Originally posted by @rnett in https://github.com/tensorflow/java/issues/174#issuecomment-751537426_","author":{"url":"https://github.com/karllessard","@type":"Person","name":"karllessard"},"datePublished":"2020-12-28T16:18:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/176/java/issues/176"}
| 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:f3555270-5c2c-94cb-e11a-90899c804931 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9004:2EC266:21CDC2D:2E6A7D3:696ABE1E |
| html-safe-nonce | a8d5d178b014e8e072487d726af3a0b1694984d6ae646f8346830f7c06eb8c1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDA0OjJFQzI2NjoyMUNEQzJEOjJFNkE3RDM6Njk2QUJFMUUiLCJ2aXNpdG9yX2lkIjoiMjEzNDI0OTY3NDQxMzYyMDc2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0426864009178679fb13ebe47d687aaffb6ceb2f48396eb977dee6f1cf856190 |
| hovercard-subject-tag | issue:775476995 |
| 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/176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77da084e4f1a23d539acca341a9e7374c8ee26a36cf3bbc61ba5fe6b5c004b55/tensorflow/java/issues/176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77da084e4f1a23d539acca341a9e7374c8ee26a36cf3bbc61ba5fe6b5c004b55/tensorflow/java/issues/176 |
| og:image:alt | I'm working on the reified generation for the Kotlin API, and I'm noticing that lots of methods have unnecessary type parameters that makes the reified usage much less nice (since you have to speci... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karllessard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b |
| 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 | 30300f30bb3949de255e84a146706a3bdb5c19c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width