mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
adjust onnx
This commit is contained in:
1 parent
4375459856
commit
40f8093e00
1 file changed
+2
-2
@@ -509,10 +509,10 @@ module Templates
|
||||
def model
|
||||
@model ||= OnnxRuntime::Model.new(
|
||||
MODEL_PATH.to_s,
|
||||
inter_op_num_threads: CPU_THREADS,
|
||||
inter_op_num_threads: 1,
|
||||
intra_op_num_threads: CPU_THREADS,
|
||||
enable_mem_pattern: false,
|
||||
enable_cpu_mem_arena: false,
|
||||
enable_cpu_mem_arena: Docuseal.multitenant? || Rails.env.development?,
|
||||
providers: ['CPUExecutionProvider']
|
||||
)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user