mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
fix not valid win32 application in python3.7 (#495)
This commit is contained in:
parent
41eae738ac
commit
682548b566
@ -60,6 +60,7 @@ class TS(basetrans):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def setup_ortmtlib(self, ort_dll_path, model_path):
|
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 = ctypes.CDLL(ort_dll_path)
|
||||||
|
|
||||||
self.ortmtlib.create_ort_session.restype = ctypes.c_int
|
self.ortmtlib.create_ort_session.restype = ctypes.c_int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user