]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Set number of threads on load as precaution
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 13 Oct 2018 13:41:09 +0000 (14:41 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 13 Oct 2018 13:41:09 +0000 (14:41 +0100)
src/plugins/lua/neural.lua

index 2d659474eb6f7bab3abd54729bd2da13c2ea558e..71ae3afb69b92e6c61579913a1502a726224b40e 100644 (file)
@@ -950,6 +950,8 @@ else
   else
     torch = require "torch"
     nn = require "nn"
+
+    torch.setnumthreads(1)
   end
 
   local id = rspamd_config:register_symbol({