You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
I am trying to build a onnx graph using helper APIs. The simplest example I started is the following. A MatMul op that takes two [1] matrix inputs (X and W), and produces [1] matrix output Y.
Traceback (most recent call last):
File "onnxruntime_test.py", line 35, in <module>
sess = rt.InferenceSession('model.onnx')
File "/usr/local/lib/python3.5/dist-packages/onnxruntime/capi/session.py", line 29, in __init__
self._sess.load_model(path_or_bytes)
RuntimeError: [ONNXRuntimeError] : 1 : GENERAL ERROR : Node: Output:Y [ShapeInferenceError] Mismatch between number of source and target dimensions. Source=0 Target=1
I am stuck here for hours. Could anybody please give me any help?
System information
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
ONNX Runtime installed from (source or binary): binary
ONNX Runtime version: 0.1.4
Python version: 3.5.2
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 9.1
GPU model and memory: Titan V
To Reproduce
Describe steps/code to reproduce the behavior:
python3 CODE.py
Expected behavior
A clear and concise description of what you expected to happen.
I expect the InferenceSession is created successfully without any issues.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
I am trying to build a onnx graph using helper APIs. The simplest example I started is the following. A MatMul op that takes two [1] matrix inputs (X and W), and produces [1] matrix output Y.
When I ran this, it complains like this:
I am stuck here for hours. Could anybody please give me any help?
System information
To Reproduce
Describe steps/code to reproduce the behavior:
python3 CODE.py
Expected behavior
A clear and concise description of what you expected to happen.
I expect the InferenceSession is created successfully without any issues.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: