1
0
Fork 0
mirror of synced 2024-05-26 07:39:34 +12:00

raise load error

This commit is contained in:
nagadomi 2016-07-09 13:20:30 +09:00
parent 7f6d113ff5
commit 0300c714eb

View file

@ -371,6 +371,7 @@ function load_noise_scale_model(model_dir, noise_level, force_cudnn)
local scale
s1, scale = pcall(w2nn.load_model, f, force_cudnn)
if not s1 then
error(model_dir .. ": load error")
return nil
end
model.scale_model = scale