From 0b37952e903a227ed0ba7d1386b9241d2fe0e446 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 9 Sep 2017 15:40:15 +0100 Subject: [Feature] Allow to load and use dynamic ANNs with torch --- rules/rspamd.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rules') 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 -- cgit v1.2.3