diff options
author | Andreas Köpf <andreas.koepf@xamla.com> | 2015-12-17 12:25:30 +0300 |
---|---|---|
committer | soumith <soumith@gmail.com> | 2015-12-30 00:41:20 +0300 |
commit | 71ca3385f5767ff65bb59f2b08eec281deb3a6d8 (patch) | |
tree | 3e1cc9a50f283416b3a0d32572e2173d6df7ccb9 /THCUNN.lua | |
parent | ece0d546b41dd3f2cb89b776cba444dc1ffe9319 (diff) |
Remove special handing for OSX search path
Diffstat (limited to 'THCUNN.lua')
-rw-r--r-- | THCUNN.lua | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -4,9 +4,7 @@ local THNN = require 'nn.THNN' local THCUNN = {} -- load libTHCUNN -local cpath = package.cpath -if ffi.os == 'OSX' then cpath = string.gsub(package.cpath, '%?%.so;', '?.dylib;') end -THCUNN.C = ffi.load(package.searchpath('libTHCUNN', cpath)) +THCUNN.C = ffi.load(package.searchpath('libTHCUNN', package.cpath)) local THCState_ptr = ffi.typeof('THCState*') |