Stream: wasi-nn

Topic: Adding bytes tensor type


view this post on Zulip Matthew Tamayo-Rios (Sep 20 2023 at 23:07):

I would appreciate any comments on the simple spec change to add support for byte arrays to the tensor types supported by wasi-nn. It would bring it in line with other frameworks and standard (for example KServe, TF, ONNX and others). Some of the others have the element type be string, but open to calling it whatever.

view this post on Zulip Matthew Tamayo-Rios (Sep 20 2023 at 23:08):

GitHub issue is here: https://github.com/WebAssembly/wasi-nn/issues/55

Some models accept tensors whose items are bytes. In order to add these to enum tensor-type, we need to figure out how to represent these bytes items as tensor data, which is currently a u8 array: ...

Last updated: Nov 22 2024 at 16:03 UTC