]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Some local fixes in torch
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Mar 2018 16:44:05 +0000 (16:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Mar 2018 16:44:05 +0000 (16:44 +0000)
contrib/torch/optim/Logger.lua
contrib/torch/torch7/lib/TH/THGeneral.c

index 31928ecdf65c2390629816d9fb919a357f1ac33d..3c1da54d312a1cd2cb8b22cc360580709318950f 100644 (file)
@@ -34,7 +34,6 @@ Example:
     logger:setlogscale(true)                 -- enable logscale on Y-axis
     logger:plot()                            -- and plot
 ]]
-require 'xlua'
 local Logger = torch.class('optim.Logger')
 
 function Logger:__init(filename, timestamp)
index b9491c9f3c2b044043c5a3ff3990c4ecc904e468..6ad96b51c70255fcac1cbb440922430f7325c389 100644 (file)
@@ -25,7 +25,7 @@
 static void defaultErrorHandlerFunction(const char *msg, void *data)
 {
   printf("$ Error: %s\n", msg);
-  exit(-1);
+  abort();
 }
 
 static THErrorHandlerFunction defaultErrorHandler = defaultErrorHandlerFunction;