Richard Zowalla created OPENNLP-1980:
----------------------------------------
Summary: AbstractDL closes the SessionOptions right after creating
the session
Key: OPENNLP-1980
URL: https://issues.apache.org/jira/browse/OPENNLP-1980
Project: OpenNLP
Issue Type: Bug
Reporter: Richard Zowalla
Fix For: 3.0.0
{{AbstractDL}} creates the {{OrtSession}} inside {{try \(sessionOptions\)}}, so
the options are closed immediately after session creation. ONNX Runtime
documents that session options must stay open until every session created with
them is closed. It is harmless while only the CUDA provider is added, but
breaks once custom operator libraries or other native\-backed options are
registered. Keep the options open and close them in {{close\(\)}} after the
session.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)