error with check.py
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
Direzione di ricerca
The failure is in check.py, where check_forward compares the baseline output with the CUDA output via check_equal and numpy's assert_allclose. The CUDA branch returns all zeros and the run ends in a segmentation fault, so start by reading the CUDA forward kernel and its build setup in the extension sources. Done would mean the CUDA output matches the baseline within tolerance and check.py forward --cuda exits cleanly. The thread has no comments or linked pull request, and the report was filed with an old PyTorch 1.4 environment, so reproduce on a current install first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
PyTorch GitHub Issues Guidelines
- OS: Ubuntu 18.04
- PyTorch version: 1.4.0
- How you installed PyTorch (conda, pip, source): conda
- Python version: 3.6
- CUDA/cuDNN version:10.0
- GPU models and configuration: Geforce RTX 2080 ti
- GCC version (if compiling from source): 7.5.0
when I run python check.py forward --cuda,
I got following error
Forward: Baseline (Python) vs. C++ ... Ok
Forward: Baseline (Python) vs. CUDA ... Traceback (most recent call last):
File "check.py", line 104, in
check_forward(variables, options.cuda, options.verbose)
File "check.py", line 45, in check_forward
check_equal(baseline_values, cuda_values, verbose)
File "check.py", line 22, in check_equal
np.testing.assert_allclose(x, y, err_msg="Index: {}".format(i))
File "/home/cogrob-wrc/.local/lib/python3.6/site-packages/numpy/testing/_private/utils.py", line 1533, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/home/cogrob-wrc/.local/lib/python3.6/site-packages/numpy/testing/_private/utils.py", line 846, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Index: 0
Mismatched elements: 15 / 15 (100%)
Max absolute difference: 0.91315287
Max relative difference: inf
x: array([[-0.913153, 0.066085, -0.006637, -0.306991, 0.552139],
[-0.28065 , -0.752348, 0.705655, 0.089504, 0.06883 ],
[-0.200587, 0.048015, 0.003387, 0.100579, -0.40925 ]])
y: array([[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.]])
[1] 4035 segmentation fault (core dumped) python check.py forward --cuda
need help!!!!
- Lingua principale
- Python
- Stelle
- 1.2k
- Fork
- 250
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pytorch/extension-cpp
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
pytorch/extension-cpp#100 · 5 commenti ·
-
Deprecation warningAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
pytorch/extension-cpp#82 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
pytorch/extension-cpp#124 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
pytorch/extension-cpp#123 ·
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 12/100
pytorch/extension-cpp#121 · 3 commenti ·
Tutte le issue di pytorch/extension-cpp
Issue simili
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
trezor/trezor-user-env#421 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tangentcode/tangentswarm#167 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno