microsoft / microsoft/onnxruntime

[Web] ORT web cannot enumerate inputs

Open
#22,949 1 comment 1 reaction 1 assignee Claimed by @guschmue View on GitHub
platform:web
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.