microsoft / microsoft/onnxruntime
Would KernelInfoGetAttribute function return more friendly output?
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
**Is your feature request related to a problem? Please describe.**
I have proposed a issue about KernelInfoGetAttribute before. #5470
I want to give another suggestion of KernelInfoGetAttribute. When I call the KernelInfoGetAttribute(C++ interface), it will exit directly if the onnx model don't have the attribute which I want to get.
**System information**
- ONNX Runtime version (you are using): v1.5.1
**Describe the solution you'd like**
when I try to get the value of attribute from onnx model, I want to get a warning, or default value, or tips,rather than core dump.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the C++ KernelInfoGetAttribute interface and read the related discussion in issue #5470. Determine the existing behavior when an ONNX model lacks the requested attribute, then define and verify one consistent missing-attribute outcome that avoids a core dump.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100