Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with check.py #61

Open
jih189 opened this issue Jul 29, 2020 · 0 comments
Open

error with check.py #61

jih189 opened this issue Jul 29, 2020 · 0 comments

Comments

@jih189
Copy link

jih189 commented Jul 29, 2020

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!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant