microsoft / microsoft/onnxruntime

Would KernelInfoGetAttribute function return more friendly output?

Open
#5,909 6 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.