1
0
Fork 0
mirror of synced 2024-06-14 00:44:32 +12:00

Merge pull request #43 from nagadomi/remove_cunn_rescue

remove exception handling for cunn
This commit is contained in:
nagadomi 2015-08-05 16:06:39 +09:00
commit e62c424109

View file

@ -1,16 +1,2 @@
require 'nn'
local function load_cuda()
require 'cunn'
end
if pcall(load_cuda) then
require 'cunn'
else
--[[ TODO: fakecuda does not work.
io.stderr:write("use FakeCUDA; if you have NVIDIA GPU, Please install cutorch and cunn. FakeCuda will be extremely slow.\n")
require 'torch'
require 'nn'
require('fakecuda').init(true)
--]]
end
require 'cunn'