From bc328b1fd0767fd77bd32f35088ef6e88877d98f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 6 Mar 2018 16:44:05 +0000 Subject: [PATCH] [Minor] Some local fixes in torch --- contrib/torch/optim/Logger.lua | 1 - contrib/torch/torch7/lib/TH/THGeneral.c | 2 +- 2 files changed, 1 insertion(+), 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; -- 2.39.5