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

[webnn] Add float32 tests for WebNN API expand op #43559

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

BruceDai
Copy link
Contributor

@BruceDai BruceDai commented Dec 7, 2023

@fdwr @Honry @mei1127 @fujunwei PTAL, thanks.

@@ -660,10 +661,11 @@ const buildPad = (operationName, builder, resources) => {
};

const buildReshape = (operationName, builder, resources) => {
// MLOperand reshape(MLOperand input, sequence<unsigned long?> newShape);
// MLOperand reshape(MLOperand input, sequence<unsigned long> newShape);
Copy link

@fdwr fdwr Dec 8, 2023

Choose a reason for hiding this comment

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

Hmm, what does this commented line mean? Does it mean you're implementing that API function here? If so, suggest adding that to the comment:

// Implements:
// MLOperand reshape(MLOperand input, sequence<unsigned long> newShape);
// MLOperand reshape(MLOperand input, sequence<unsigned long> newShape);

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 removed '?' character since Chromium CL#5060264 - Drop null value support in newShape parameter for reshape has already been merged, link to webmachinelearning/webnn#388.

Copy link

Choose a reason for hiding this comment

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

Aha.

Copy link

@fdwr fdwr left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@Honry Honry left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Honry Honry merged commit b597a15 into web-platform-tests:master Dec 13, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants