Skip to content

Instantly share code, notes, and snippets.

@soumith
Created August 23, 2016 04:25
Show Gist options
  • Save soumith/b1ad521975c58f62dbb519b7974877b8 to your computer and use it in GitHub Desktop.
Save soumith/b1ad521975c58f62dbb519b7974877b8 to your computer and use it in GitHub Desktop.
$ CUDA_VISIBLE_DEVICES=0 th -lcutorch -e "cutorch.test('sigmoid1')"
seed: 1471924845
Running 1 test
1/1 sigmoid1 ............................................................ [WAIT]torch.CudaTensor
input CPU: 0.31726333498955
input GPU: 0.31726333498955
Result CPU: 0.57865715026855
Result GPU: 0.5786572098732
torch.CudaDoubleTensor
input CPU: 0.31726332521066
input GPU: 0.31726332521066
Result CPU: 0.57865715913206
Result GPU: 1
torch.CudaHalfTensor
input CPU: 0.3173828125
input GPU: 0.3173828125
Result CPU: 0.57868629693985
Result GPU: 0.57868629693985
1/1 sigmoid1 ............................................................ [FAIL]
Completed 9 asserts in 1 test with 1 failure and 0 errors
--------------------------------------------------------------------------------
sigmoid1
Divergent results between CPU and CUDA for function 'torch.CudaDoubleTensor.sigmoid for return value # 1
BOOL violation condition=false
.../awesomebox/torch/install/share/lua/5.1/cutorch/test.lua:1222: in function 'v'
.../awesomebox/torch/install/share/lua/5.1/cutorch/test.lua:3460: in function <.../awesomebox/torch/install/share/lua/5.1/cutorch/test.lua:3458>
--------------------------------------------------------------------------------
.../awesomebox/torch/install/share/lua/5.1/torch/Tester.lua:361: An error was found while running tests!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment