Comments (1)
After exporting PYTHONPATH like this:
export PYTHONPATH=onnxruntime/build/Linux/Release:${PYTHONPATH}
export PYTHONPATH=onnxruntime/build/Linux/Release/_deps/tvm-src/python:${PYTHONPATH}
I ran into another error:
>>> import onnxruntime
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/onnxruntime/build/Linux/Release/onnxruntime/__init__.py", line 57, in <module>
raise import_capi_exception
File "/onnxruntime/build/Linux/Release/onnxruntime/__init__.py", line 23, in <module>
from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401
File "/onnxruntime/build/Linux/Release/onnxruntime/capi/_pybind_state.py", line 12, in <module>
from . import _ld_preload # noqa: F401
File "/onnxruntime/build/Linux/Release/onnxruntime/capi/_ld_preload.py", line 13, in <module>
import tvm
File "/onnxruntime/build/Linux/Release/_deps/tvm-src/python/tvm/__init__.py", line 55, in <module>
from . import tir
File "/onnxruntime/build/Linux/Release/_deps/tvm-src/python/tvm/tir/__init__.py", line 24, in <module>
from .expr import Var, SizeVar, Reduce, FloatImm, IntImm, StringImm, Cast
File "/onnxruntime/build/Linux/Release/_deps/tvm-src/python/tvm/tir/expr.py", line 1014, in <module>
class Load(PrimExprWithOp):
File "/onnxruntime/build/Linux/Release/_deps/tvm-src/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/onnxruntime/build/Linux/Release/_deps/tvm-src/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm.error.InternalError: Traceback (most recent call last):
4: 0xffffffffffffffff
3: 0x000000000058852d
2: ffi_call
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/tvm/src/runtime/object.cc", line 165
InternalError: Check failed: (it != type_key2index_.end()) is false: Cannot find type tir.Load. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?
TVM hint: You hit an internal error. Please open a thread on https://discuss.tvm.apache.org/ to report it.
from onnxruntime.
Related Issues (20)
- I want to get the“hidden_states” data in the Bert model HOT 3
- BeamSearch op returning wrong results on CUDA execution provider when sequence is used as input_ids HOT 2
- [Documentation] ORT Format Model Version Table Needs Update HOT 2
- [Mobile] Broadcasting Error in Sub Node with ONNX Runtime Version 1.17.3: Incompatibility with Dimension Broadcasting Rules HOT 1
- Type Error: Type 'tensor(int64)' of input parameter (16586) of operator (Clip) in node (Clip_13292) is invalid. HOT 6
- LayerNormalization doesnt' work as expected on Mac HOT 1
- User-provided session logging function is not used for every log HOT 6
- NOT_IMPLEMENTED : Could not find an implementation for ReduceProd(18) node with name 'p2o.ReduceProd.0' HOT 1
- [Performance] Quadratic behaviour in list operations with SequenceInsert in onnx HOT 1
- [Build] [CANN] Failed to build CANN provider with training and Python bindings HOT 1
- ONNX Runtime doesn't support the graph optimization of vision-encoder-decoder yet HOT 1
- cannot resolve operator 'HardSwish' with opsets: ai.onnx v9 [Web] HOT 1
- cuda's FusedConv is not support Sigmod HOT 1
- [Mobile] Subgraphs duplicate initializers in RAM during execution HOT 9
- [Web] The YOLOv8 segmentation model with batching option is not runing on the GPU ? HOT 2
- [Performance] Regression observed when using CUDA execution provider HOT 15
- Onnxruntime-directml 1.18.0 broken multithreading inference session HOT 5
- [Build] 0.18.0 release breaks Hummingbird build pipeline HOT 5
- Windows ARM64 & X64 CLIP Image Encoder different results HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxruntime.