Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

A refused set_inputs() leaves a method runnable with mixed inputs, and get_outputs() returns stale results

Fechada
#23,913 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@shoumikhin já está trabalhando nisso.

Desde 18/10/2026.

  • #23957 de @shoumikhin — aberto

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
40/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python, pytorch
Domínio
api

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

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/executorch

Todas as issues de pytorch/executorch

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.