From: Vsevolod Stakhov Date: Tue, 6 Mar 2018 16:44:05 +0000 (+0000) Subject: [Minor] Some local fixes in torch X-Git-Tag: 1.7.0~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc328b1fd0767fd77bd32f35088ef6e88877d98f;p=rspamd.git [Minor] Some local fixes in torch --- 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;