Open jih189 opened 4 years ago
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!!!!
PyTorch GitHub Issues Guidelines
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!!!!