1
0
Fork 0
mirror of synced 2024-06-14 00:44:32 +12:00
waifu2x/lib/portable.lua
2015-10-26 09:39:41 +09:00

18 lines
242 B
Lua

require 'torch'
require 'nn'
local function load_cuda()
require 'cutorch'
require 'cunn'
end
local function load_cudnn()
require 'cudnn'
--cudnn.fastest = true
end
if pcall(load_cuda) then
else
end
if pcall(load_cudnn) then
end