Skip to content

Support uint8/int8 input for resample2d #872

@huningxin

Description

@huningxin

This was discussed in Chromium code review: https://chromium-review.googlesource.com/c/chromium/src/+/6701775/comment/7d6966c4_2a5487e3/, where @fdwr proposed to support uint8 input for resample2d for image input

For uint8, currently resample2d is specified to take float16/float32, and so uint8 couldn't reach here anyway. Though, I agree that adding uint8 to WebNN resample makes sense (and maybe even int8), since most incoming pixel data is 8-bit, and this allows the graph to directly accept pixel data to apply any transformations to floating point, without requiring each caller to manually do that outside graph processing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions