aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-09 15:40:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-09 15:40:15 +0100
commit0b37952e903a227ed0ba7d1386b9241d2fe0e446 (patch)
tree931b2e7b25577d17054e12f72a1e5b523acc5a37 /rules
parentda9dae40e27383d7e646558fae2c708ec20b03c0 (diff)
downloadrspamd-0b37952e903a227ed0ba7d1386b9241d2fe0e446.tar.gz
rspamd-0b37952e903a227ed0ba7d1386b9241d2fe0e446.zip
[Feature] Allow to load and use dynamic ANNs with torch
Diffstat (limited to 'rules')
-rw-r--r--rules/rspamd.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/rspamd.lua b/rules/rspamd.lua
index 1c0ddaa8a..6b53828ee 100644
--- a/rules/rspamd.lua
+++ b/rules/rspamd.lua
@@ -71,4 +71,7 @@ if rmaps and type(rmaps) == 'table' then
rspamd_maps[k] = map_or_err
end
end
-end \ No newline at end of file
+end
+
+local rspamd_nn = require "lua_nn"
+rspamd_nn.load_rspamd_nn() -- Load defined models \ No newline at end of file