소스 검색

Merge pull request #43 from nagadomi/remove_cunn_rescue

remove exception handling for cunn
nagadomi 10 년 전
부모
커밋
e62c424109
1개의 변경된 파일1개의 추가작업 그리고 15개의 파일을 삭제
  1. 1 15
      lib/portable.lua

+ 1 - 15
lib/portable.lua

@@ -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'