A refused set_inputs() leaves a method runnable with mixed inputs, and get_outputs() returns stale results
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 40/100
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
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de pytorch/executorch
-
Windows: _get_flatc_path() looks for data/bin/flatc but the wheel ships flatc.exe (WinError 2)Peut-être pris @JacobSzwejbka l’a pris il y a 1 jour. Ouvertebug module: exir triaged
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
pytorch/executorch#23989 · 1 réaction · 3 personnes assignées ·
Les mainteneurs répondent en général sous 1 jour
-
Portable remainder kernel: wrong sign for integers and float64 rounded to floatPeut-être pris @JakeStevens l’a pris il y a 10 jours. Ouvertebug module: kernels triaged
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
pytorch/executorch#23682 · 2 personnes assignées ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement triaged
Difficulté 2/5 Une demi-journée Accessibilité débutants 68/100
pytorch/executorch#21640 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 54/100
pytorch/executorch#24095 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 40/100
pytorch/executorch#23955 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de pytorch/executorch
Issues similaires
-
good first issue priority: low size: XS testing
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
cubrid-lab/cubrid-mcp-server#385 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue priority: low size: S testing
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
cubrid-lab/cubrid-cookbook-python#447 ·
Les mainteneurs répondent en général sous 1 jour
-
Python PointcloudOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
ArduCAM/Arducam_tof_camera#125 ·
-
area:curator enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
CassioDalla/Scrinalia#150 ·
Les mainteneurs répondent en général sous 1 jour
-
Tutorial notebook: Find the leakOuvertedocumentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100