Cannot Unpack, Too Many Items
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 1.2k
- 派生
- 250
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pytorch/extension-cpp 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
pytorch/extension-cpp#100 · 5 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
pytorch/extension-cpp#82 ·
-
难度 4/5 3-5 天 新手友好度 45/100
pytorch/extension-cpp#124 ·
-
难度 3/5 1-2 天 新手友好度 35/100
pytorch/extension-cpp#123 ·
-
难度 4/5 1-2 天 新手友好度 12/100
pytorch/extension-cpp#121 · 3 条评论 ·
查看 pytorch/extension-cpp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"可能已有人在做 @cestercian 今天认领。 未关闭comp/cli P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#162259 · 1 条评论 ·
维护者通常 1 天内回复
-
upstream update
难度 2/5 1-3 小时 新手友好度 72/100
conan-io/conan-center-index#31597 ·
维护者通常 1 天内回复
-
bug enhancement
难度 1/5 1 小时以内 新手友好度 90/100
AOSSIE-Org/PictoPy#1802 · 2 条评论 ·
维护者通常 3 天内回复
-
community-request
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA-NeMo/Run#727 ·
维护者通常 1 天内回复