microsoft / microsoft/onnxruntime
[Web] ORT web cannot enumerate inputs
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the issue
ORTWeb’s API should expose a model input’s data type and named dimensions, but the JS/TS [InferenceSession API](https://onnxruntime.ai/docs/api/js/variables/InferenceSession-2.html) is missing this ability.
In ORT Native (C++), you can call:
`Ort::Session::GetInputCount()`
`Ort::Session::GetInputNameAllocated` -> name
`Ort::Session::GetInputTypeInfo` -> `Ort::TypeInfo`
`Ort::TypeInfo::GetTensorTypeAndShapeInfo`
### To reproduce
See publicly available APIs.
### Urgency
_No response_
### ONNX Runtime Installation
Released Package
### ONNX Runtime Version or Commit ID
n/a
### Execution Provider
Other / Unknown
Contributor guide
Assessment
This issue has not been assessed yet.