diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 14:41:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 14:41:09 +0100 |
commit | 6eef162a6c0173be83622cbe11aea906eaa939ae (patch) | |
tree | 51d3b98a48e282c3d12e75941860322f7e2e4f2b /src/plugins | |
parent | fe026097b171d411c376fb0afb5d11b3354676fc (diff) | |
download | rspamd-6eef162a6c0173be83622cbe11aea906eaa939ae.tar.gz rspamd-6eef162a6c0173be83622cbe11aea906eaa939ae.zip |
[Minor] Set number of threads on load as precaution
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/neural.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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({ |