Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

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

Fermée
#23,913 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@shoumikhin y travaille déjà.

Depuis le 18/10/2026.

  • #23957 par @shoumikhin — ouverte

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
40/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
python, pytorch
Domaine
api

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
5.1k
Forks
1.2k
Merge moyen
2 j 17 min
PR mergées (30 j)
692

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de pytorch/executorch

Toutes les issues de pytorch/executorch

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.