Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SuperResolution example and test #284

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

bbernhar
Copy link
Contributor

Adds SuperResolution to WebNN!

@bbernhar
Copy link
Contributor Author

@fujunwei PTAL!

Copy link
Collaborator

@fujunwei fujunwei left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM and left some comments.

Could you please add a ReadMe for the example like [1]?

[1] https://github.com/webmachinelearning/webnn-native/blob/main/examples/MobileNetV2/README.md

examples/SuperResolution/SuperResolution.cpp Outdated Show resolved Hide resolved
examples/SuperResolution/SuperResolution.cpp Outdated Show resolved Hide resolved
examples/SuperResolution/SuperResolution.cpp Show resolved Hide resolved
return utils::BuildConstant(builder, data.shape, data.data<float>(), data.num_bytes());
}

const wnn::Operand SuperResolution::BuildConv(const wnn::GraphBuilder& builder,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mingmingtasd Ditto.

examples/SuperResolution/SuperResolution.cpp Outdated Show resolved Hide resolved
examples/SuperResolution/SuperResolution.cpp Outdated Show resolved Hide resolved
examples/SuperResolution/SuperResolution.h Outdated Show resolved Hide resolved
src/webnn/native/dmlx/GraphDMLX.cpp Show resolved Hide resolved
src/webnn/tests/end2end/models/SuperResolutionNchw.cpp Outdated Show resolved Hide resolved
Adds SuperResolution to WebNN!
@bbernhar
Copy link
Contributor Author

@fujunwei I don't have the example building yet (for the README), only the test. Will come next if that's OK.

@fujunwei
Copy link
Collaborator

fujunwei commented Aug 1, 2022

make sense, merge it, thanks.

@fujunwei fujunwei merged commit 6b27f08 into webmachinelearning:main Aug 1, 2022
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.

3 participants