raise load error
This commit is contained in:
parent
7f6d113ff5
commit
0300c714eb
|
@ -371,6 +371,7 @@ function load_noise_scale_model(model_dir, noise_level, force_cudnn)
|
||||||
local scale
|
local scale
|
||||||
s1, scale = pcall(w2nn.load_model, f, force_cudnn)
|
s1, scale = pcall(w2nn.load_model, f, force_cudnn)
|
||||||
if not s1 then
|
if not s1 then
|
||||||
|
error(model_dir .. ": load error")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
model.scale_model = scale
|
model.scale_model = scale
|
||||||
|
|
Loading…
Reference in a new issue