fix not valid win32 application in python3.7 (#495)

This commit is contained in:
chaihahaha 2024-01-18 14:40:03 +08:00 committed by GitHub
parent 41eae738ac
commit 682548b566
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,6 +60,7 @@ class TS(basetrans):
return
def setup_ortmtlib(self, ort_dll_path, model_path):
self.ort = ctypes.CDLL(os.path.join(os.path.dirname(ort_dll_path), "onnxruntime.dll"))
self.ortmtlib = ctypes.CDLL(ort_dll_path)
self.ortmtlib.create_ort_session.restype = ctypes.c_int