microsoft / microsoft/onnxruntime
iobinding support part of inputs
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the feature request
My model has 2 inputs, the first input is received from client, and the second input can be loaded from local and it's input size is very big.
In case of copy the big input from cpu mem to gpu mem, i have to move the big input to device mem before run inference.
I want to know if i create iobinding each time in inference, does the big input need to copy to gpu mem every time ?
### Describe scenario use case
some model inputs are big and can be loaded by local, other inputs is small and received from client, how to avoid the big input copy from cpu to gpu in every inference ?
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
The issue concerns I/O binding for a model with one client input and one large local input, and asks whether creating bindings per inference recopies the large input to GPU memory. The payload names no files or tests, so start by locating the I/O binding inference entry point and related coverage; done means establishing a supported way to handle the large input across repeated runs.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend-api-design, machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100