diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-06 16:44:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-06 16:44:05 +0000 |
commit | bc328b1fd0767fd77bd32f35088ef6e88877d98f (patch) | |
tree | 8aa42872ca24a07a28d6b8e6deb782bcd0da0510 | |
parent | 478687cd467a1c342b9ec1cefc3c5cd0528d9d14 (diff) | |
download | rspamd-bc328b1fd0767fd77bd32f35088ef6e88877d98f.tar.gz rspamd-bc328b1fd0767fd77bd32f35088ef6e88877d98f.zip |
[Minor] Some local fixes in torch
-rw-r--r-- | contrib/torch/optim/Logger.lua | 1 | ||||
-rw-r--r-- | contrib/torch/torch7/lib/TH/THGeneral.c | 2 |
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; |