Skip to content

Conversation

shschaefer
Copy link
Contributor

In testing this interface with commonly available models, there are data types missing in the specification. I have added here both integer and floating point 64-bit types as these are defined in the WASM specification as native types.

There are many other types defined by the frameworks listed in the specification. Is the goal to provide an interface which is a superset of these types or simply represent the most common. For example, many of the quantized types are primarily used internally, not at the input/output boundary.

wasi-nn.witx Outdated
(enum (@witx tag u8)
$f16
$f32
$f32
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shschaefer, thanks for the PR! I think you meant $f64 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to replay the PR on a different machine to submit. My apologies. Good catch!

@abrown
Copy link
Collaborator

abrown commented Aug 23, 2023

There are many other types defined by the frameworks listed in the specification. Is the goal to provide an interface which is a superset of these types or simply represent the most common. For example, many of the quantized types are primarily used internally, not at the input/output boundary.

I think "most common" is the best approach for now, especially if the rarer ones are only used internally.

@abrown abrown merged commit 747d8df into WebAssembly:main Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants