A refused set_inputs() leaves a method runnable with mixed inputs, and get_outputs() returns stale results
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 40/100
Direção de pesquisa
Start from the Python set_inputs(), execute() and get_outputs() methods on the method object; the payload does not name the file, so locate them by search. Run the four-line reproduction in the issue to see the mixed inputs and the stale get_outputs() result. The issue proposes tracking input completeness and last-execute success and raising from execute() and get_outputs(), so settle with maintainers whether a refused call should roll back or the state should become an error. Done means a refused set_inputs() leaves no partial state, and the two getters raise instead of returning stale values.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
When set_inputs() is refused partway, the inputs installed before the refusal stay, and the next
execute() runs a mix of new and old inputs:
method.set_inputs([ones, ones])
method.set_inputs([fives, torch.ones(3, 3)]) # refused: wrong shape for input 1
method.execute()
method.get_outputs()[0] # 6.0: new input 0 plus old input 1
get_outputs() also returns whatever the output memory holds when nothing valid ran: zeros before the
first execute(), and the previous results after an execute() that raised.
Tracking whether the inputs are complete and whether the last execute() succeeded, and raising from
execute() and get_outputs() when either is false, would turn both into errors.
- Linguagem predominante
- Python
- Estrelas
- 5.1k
- Forks
- 1.2k
- Merge médio
- 1d 21h
- PRs com merge (30d)
- 695
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de pytorch/executorch
-
enhancement triaged
Dificuldade 2/5 Meio dia Facilidade para iniciantes 68/100
pytorch/executorch#21640 ·
Mantenedores costumam responder em até 1 dia
-
module: cuda
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 10/100
pytorch/executorch#24353 ·
Mantenedores costumam responder em até 1 dia
-
More Exynos SoCs supportAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 10/100
pytorch/executorch#24350 ·
Mantenedores costumam responder em até 1 dia
-
`torch.complex` fails Edge export and CPU executionTalvez já em andamento @JakeStevens assumiu hoje. Abertabug module: kernels triaged
pytorch/executorch#24328 · 2 responsáveis ·
Mantenedores costumam responder em até 1 dia
-
module: openvino
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
pytorch/executorch#24325 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de pytorch/executorch
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
vllm-project/vllm#64845 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
dekobon/big-code-analysis#1729 ·
Mantenedores costumam responder em até 1 dia
-
Add `openai_safety_identifier`, the replacement for the `user` field that `openai_user` sendsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
pydantic/pydantic-ai#12091 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100