You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebNN should supports super-resolution models #127
Looks like the current spec should already handle the requirement of the version of the super-resolution model based on the DirectML super-resolution sample. The only tricky issue is the lack of ArrayBufferView support for half-precision float (FP16). A popular variant of the super-resolution model runs on FP16 tensors in order to leverage vectorized ML acceleration such as NVIDIA tensor cores when available.
Although the lack of FP16 support in the ArrayBufferView could possibly be worked around by just using Uint16Array to appropriately offset the tensor data and deal with the float-casting inside the webnn implementation itself, it could still be confusing to some at the model builder level.
Although the lack of FP16 support in the ArrayBufferView could possibly be worked around by just using Uint16Array to appropriately offset the tensor data and deal with the float-casting inside the webnn implementation itself, it could still be confusing to some at the model builder level.
Agree. It would be good to have the Float16Array support.
There is a related FP16 discussion in the W3C ML workshop.
@wchao1115 thanks for checking that the spec satisfied the requirements of known super-resolution models.
(I encourage the group participants to open new issues similarly to this if they feel there may be unaddressed requirements derived from model architectures targeting the use cases documented in the spec. We did updates to the API spec #123 in response to a similar assessment for style transfer models. Also new use cases can be brought to the group's consideration by opening a new issue.)
Based on this stated use case of WebNN, it needs to be able to support the various super-resolution models such as one compiled in this literature.