tensorflow / tensorflow/java

NnOps topK not allowing variadic args for TopK.Options

Đang mở
#615 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Java
Star
928
Fork
227
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Kiểm tra tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java quanh các dòng 3109-3131 và so sánh biến thể gần đó ở các dòng 3154-3157. Tái hiện lệnh gọi tf.nn.topK(input, k) đã được báo cáo và xác minh rằng phương thức này chấp nhận dạng options như mong đợi và có thể được tìm thấy qua Java API.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.