Comments (6)
label this issue csharp?
from onnxruntime.
How large is your model? Can you share it via a file sharing service?
from onnxruntime.
Here is the model:
https://www.transfernow.net/dl/20240329yKmybLR9
from onnxruntime.
C# code does not parse protobuf. It is parsed by google library. I will investigate if we could make it a better error message. Said that, here is some python code that also runs onnx library checker and points to a problem with the model even before InferenceSession
is invoked.
import onnxruntime
import numpy as np
import onnx
model_path='model.onnx'
model = onnx.load(model_path)
onnx.checker.check_model(model)
session_options = onnxruntime.SessionOptions()
session_options.log_severity_level = 4
session_options.enable_mem_reuse = False
sess = onnxruntime.InferenceSession(
model,
sess_options=session_options,
providers=["CPUExecutionProvider"],
)
LayerNormalization
op appeared in ONNX starting with opset 17.
https://github.com/onnx/onnx/blob/main/docs/Operators.md#LayerNormalization
Traceback (most recent call last):
File "d:\dev\data\BadProtobuf\ort_optimize.py", line 8, in
onnx.checker.check_model(model)
File "c:\Python\lib\site-packages\onnx\checker.py", line 179, in check_model
C.check_model(
onnx.onnx_cpp2py_export.checker.ValidationError: No Op registered for LayerNormalization with domain_version of 11
==> Context: Bad node spec for node. Name: LayerNormalization OpType: LayerNormalization
from onnxruntime.
Your model imports ONNX domain opset11
from onnxruntime.
I will check with the converter folks to see what may have gone wrong.
from onnxruntime.
Related Issues (20)
- GetElementType is not implemented after updating onnxruntime HOT 1
- [Feature Request] Native WebGPU Execution Provider HOT 2
- [Documentation] Prebuilt ORT Package does not include required QNN dependency HOT 1
- topk assumes GridDim::maxThreadsPerBlock >= 256 HOT 1
- topk unreachable code HOT 1
- [Feature Request] Integrate with ONNX 1.17.0 release branch
- [Web] The ONNX model cannot be loaded via WASM in the IOS17 browser. HOT 4
- [Documentation] HOT 1
- [Build] cannot create ALIAS target "nsync::nsync_cpp"
- CenterCropPad inside of SequenceMap subgraph produces INVALID_GRAPH
- [Documentation] Execution provider strings HOT 4
- [Feature Request] DirectML expose enumeration API HOT 2
- [Web] Error when using Web Workers on Next.js HOT 4
- [Web] Rename WebNN EP MLOperandDescriptor's "dimensions" key to "shape" HOT 1
- [Performance] How to reduce gpu memory consumption ?
- Can't use the _ctx.onnx file created using trt_dump_ep_context_model. HOT 2
- [Build] Build failure with --build_nuget flag
- TensorRT EP could not deserialize engine from binary data HOT 17
- [Question or BUG] ONNX Runtime CUDA Sessions in Unity Produce Empty Outputs When Running Multiple Models Sequentially on a Single Graphic Card HOT 1
- [Feature Request] Make DirectML execution provider thread safe (allow Run() concurrency)
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.