Skip to content
Discussion options

You must be logged in to vote

Not aware of anything being defined in the ORT python library as it seems like a slightly unusual use-case. Given you need to provide valid input to run the model, why would you not know the type of that data and/or the details of the model inputs?

FWIW models can be viewed in Netron and the input/output data types are shown there.

You can create a fairly simple lookup table like this:

ort_to_np = {
"tensor(float)": np.float32,
"tensor(float16)": np.float16,
"tensor(int64)": np.int64,
"tensor(int32)": np.int32,
"tensor(int8)": np.int8,
"t…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cansik
Comment options

Answer selected by cansik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants