Skip to content

Commit 7d33688

Browse files
Add get_model method to ONNXRuntimeAdapter
Signed-off-by: Ashwin Vaidya <[email protected]>
1 parent 0531681 commit 7d33688

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

model_api/python/model_api/adapters/onnx_adapter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ def embed_preprocessing(
162162
reversed(preproc_funcs),
163163
)
164164

165+
def get_model(self):
166+
"""Return the reference to the ONNXRuntime session."""
167+
return self.session
168+
165169
def reshape_model(self, new_shape):
166170
raise NotImplementedError
167171

0 commit comments

Comments
 (0)