Explorar o código

Set cuda():evaluate()

nagadomi %!s(int64=9) %!d(string=hai) anos
pai
achega
4322b63750
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tools/cleanup_model.lua

+ 2 - 0
tools/cleanup_model.lua

@@ -17,6 +17,8 @@ local opt = cmd:parse(arg)
 local model = torch.load(opt.model, opt.iformat)
 if model then
    w2nn.cleanup_model(model)
+   model:cuda()
+   model:evaluate()
    torch.save(opt.model, model, opt.oformat)
 else
    error("model not found")