From 6eef162a6c0173be83622cbe11aea906eaa939ae Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 13 Oct 2018 14:41:09 +0100 Subject: [PATCH] [Minor] Set number of threads on load as precaution --- src/plugins/lua/neural.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 2d659474e..71ae3afb6 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -950,6 +950,8 @@ else else torch = require "torch" nn = require "nn" + + torch.setnumthreads(1) end local id = rspamd_config:register_symbol({ -- 2.39.5