aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-06 16:44:05 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-06 16:44:05 +0000
commitbc328b1fd0767fd77bd32f35088ef6e88877d98f (patch)
tree8aa42872ca24a07a28d6b8e6deb782bcd0da0510
parent478687cd467a1c342b9ec1cefc3c5cd0528d9d14 (diff)
downloadrspamd-bc328b1fd0767fd77bd32f35088ef6e88877d98f.tar.gz
rspamd-bc328b1fd0767fd77bd32f35088ef6e88877d98f.zip
[Minor] Some local fixes in torch
-rw-r--r--contrib/torch/optim/Logger.lua1
-rw-r--r--contrib/torch/torch7/lib/TH/THGeneral.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/contrib/torch/optim/Logger.lua b/contrib/torch/optim/Logger.lua
index 31928ecdf..3c1da54d3 100644
--- a/contrib/torch/optim/Logger.lua
+++ b/contrib/torch/optim/Logger.lua
@@ -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)
diff --git a/contrib/torch/torch7/lib/TH/THGeneral.c b/contrib/torch/torch7/lib/TH/THGeneral.c
index b9491c9f3..6ad96b51c 100644
--- a/contrib/torch/torch7/lib/TH/THGeneral.c
+++ b/contrib/torch/torch7/lib/TH/THGeneral.c
@@ -25,7 +25,7 @@
static void defaultErrorHandlerFunction(const char *msg, void *data)
{
printf("$ Error: %s\n", msg);
- exit(-1);
+ abort();
}
static THErrorHandlerFunction defaultErrorHandler = defaultErrorHandlerFunction;