Minor bugfix. (#166)
This commit is contained in:
parent
bb17fa965f
commit
dedd5f4a12
|
@ -35,5 +35,5 @@ target_include_directories(PyRuntime PRIVATE
|
||||||
${ONNX_MLIR_SRC_ROOT})
|
${ONNX_MLIR_SRC_ROOT})
|
||||||
|
|
||||||
add_dependencies(PyRuntime cruntime)
|
add_dependencies(PyRuntime cruntime)
|
||||||
install(FILES Runtime/DynMemRef.h DESTINATION include)
|
install(FILES DynMemRef.h DESTINATION include)
|
||||||
install(TARGETS cruntime DESTINATION lib)
|
install(TARGETS cruntime DESTINATION lib)
|
||||||
|
|
|
@ -22,15 +22,15 @@ if (not os.environ.get('ONNX_MLIR_HOME', None)):
|
||||||
VERBOSE = os.environ.get('VERBOSE', False)
|
VERBOSE = os.environ.get('VERBOSE', False)
|
||||||
ONNX_MLIR = os.path.join(os.environ['ONNX_MLIR_HOME'], "bin/onnx-mlir")
|
ONNX_MLIR = os.path.join(os.environ['ONNX_MLIR_HOME'], "bin/onnx-mlir")
|
||||||
|
|
||||||
# Include runtime directory in python paths, so pyruntime can be imported.
|
# Include runtime directory in python paths, so PyRuntime can be imported.
|
||||||
RUNTIME_DIR = os.path.join(os.environ['ONNX_MLIR_HOME'], "lib")
|
RUNTIME_DIR = os.path.join(os.environ['ONNX_MLIR_HOME'], "lib")
|
||||||
sys.path.append(RUNTIME_DIR)
|
sys.path.append(RUNTIME_DIR)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from pyruntime import ExecutionSession
|
from PyRuntime import ExecutionSession
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
"Looks like you did not build the pyruntime target, build it by running `make pyruntime`."
|
"Looks like you did not build the PyRuntime target, build it by running `make PyRuntime`."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue