Bugs in the legacy TorchBackend

Aperta
#147 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@frazane ci sta già lavorando.

Dal 7/11/2026.

  • #165 di @frazane — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, pytorch
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).
Lingua principale
Python
Stelle
108
Fork
15
Merge medio
1h 42m
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di frazane/scoringrules

Tutte le issue di frazane/scoringrules

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.