Bugs in the legacy TorchBackend

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

Maintainer thường phản hồi trong vòng 1 ngày

@frazane đang làm issue này rồi.

Từ ngày 7/11/2026.

  • #165 của @frazane — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, pytorch
Lĩnh vực
backend

Hướng nghiên cứu

The issue lists three bugs in the legacy TorchBackend: float32 comb results, hypergeometric returning NotImplementedError, and apply_along_axis for axes other than -1. Start by reading the TorchBackend implementation and inspect open PR #165, which is already linked to this issue. The issue says these bugs go away with Phase 3 of #132; confirm that work's status before deciding what remains.

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

Mô tả

backend:torch bug

Found while working on #143. These go away with Phase 3 of #132, but comb affects the discrete log scores on torch today.

  • comb uses floor division on float32 factorials, so comb(20, 7) gives 77519 instead of 77520 and logs_binomial with float32 tensors is slightly off.
  • hypergeometric returns NotImplementedError instead of raising it.
  • apply_along_axis is wrong for axis != -1 (only -1 is used today).
Ngôn ngữ chính
Python
Star
108
Fork
15
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

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.

Issue khác của frazane/scoringrules

Tất cả issue của frazane/scoringrules

Issue tương tự

Thêm issue về Python

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.