Cannot Unpack, Too Many Items

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, python
Ambito
backend

Direzione di ricerca

Compare the output tuple unpacking in cuda/lltm.py (around line 25) with the values returned by the forward kernel in cuda/lltm_cuda_kernel.cu (around line 173), then check the same wiring in cpp/lltm.py and cpp/lltm.cpp. First confirm whether the CUDA kernel really returns six tensors, since the author only suspects the mismatch. Done means the Python wrapper's unpacking matches what the kernel returns, and the CUDA example still runs on a GPU machine.

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

Descrizione

I think there's a mistake in the cpp section and I want to ask before I "fix" it. It doesn't technically cause an error, but it makes it harder to switch the python file back and forth. So the cpp version of the python file has this line https://github.com/pytorch/extension-cpp/blob/master/cpp/lltm.py#L23 with 5 outputs which correctly corresponds to the 5 outputs from the cpp file https://github.com/pytorch/extension-cpp/blob/master/cpp/lltm.cpp#L84
But looking at the cuda version, there are 6 outputs. Python: https://github.com/pytorch/extension-cpp/blob/master/cuda/lltm.py#L25, cu: https://github.com/pytorch/extension-cpp/blob/master/cuda/lltm_cuda_kernel.cu#L173

If this is confirmed I can also edit the tutorial text as I have an open PR there fixing some other language.

Lingua principale
Python
Stelle
1.2k
Fork
250
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 pytorch/extension-cpp

Tutte le issue di pytorch/extension-cpp

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.