Cannot Unpack, Too Many Items

Offen
#75 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
Unter einer Stunde
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
cpp, python
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
1.2k
Forks
250
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus pytorch/extension-cpp

Alle Issues in pytorch/extension-cpp

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.