Cannot Unpack, Too Many Items

Aberta
#75 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
cpp, python
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
1.2k
Forks
250
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de pytorch/extension-cpp

Todas as issues de pytorch/extension-cpp

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.