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

test add tests for float16 #496

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

test add tests for float16 #496

wants to merge 2 commits into from

Conversation

BruceDai
Copy link
Owner

@BruceDai BruceDai commented Apr 4, 2023

@fdwr PTAL, thanks.

}
},
{
"name": "add float32 2D tensors",
Copy link

Choose a reason for hiding this comment

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

Hmm, why are all these other test cases being deleted? Don't we want at least test cases for add that still tests float32?

Copy link
Owner Author

Choose a reason for hiding this comment

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

It's just to clearly show test for float16.

Copy link

@fdwr fdwr Apr 5, 2023

Choose a reason for hiding this comment

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

The PR title shows that float16 tests are being added, but I see float32 tests being deleted 🤔. Don't we want add tests to include both float16 and float32 cases?

Copy link
Owner Author

@BruceDai BruceDai Apr 6, 2023

Choose a reason for hiding this comment

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

The PR title shows that float16 tests are being added

Actually here "add" means add operation.

Don't we want add tests to include both float16 and float32 cases?

Right, adding tests for float32float16, and other types of https://webmachinelearning.github.io/webnn/#enumdef-mloperandtype are our target.

Copy link

Choose a reason for hiding this comment

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

My question remains - why don't we just keep some of the float32 test cases for the add operator instead of deleting the existing ones? If you delete the float32 test cases, do you plan to re-add them later in another pull request?

Copy link
Owner Author

Choose a reason for hiding this comment

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

It's a sample to only show a test for float16.

Copy link

Choose a reason for hiding this comment

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

Wait a minute, this is your own private repo (BruceDai/wpt), not web-platform-tests - that was the missing detail! So then I don't even need to sign off since this is your repo anyway, but yeah, it's fine to me.

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

@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.

Since this is in your personal repo, there's no review needed from me (but looks fine nonetheless).

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.

2 participants