瀏覽代碼

Fix neural check in lua_cfg_transform.lua

check for neural.enabled to see if it's enabled. only checking for neural is always true unless someone messed with config files.
pull/4840/head
cyzOG9000 3 月之前
父節點
當前提交
a8319f99d3
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lualib/lua_cfg_transform.lua

+ 1
- 1
lualib/lua_cfg_transform.lua 查看文件

@@ -544,7 +544,7 @@ return function(cfg)
end

-- If neural network is enabled we MUST have `check_all_filters` flag
if cfg.neural then
if cfg.neural and cfg.neural.enabled then
if not cfg.options then
cfg.options = {}
end

Loading…
取消
儲存