-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
} | ||
}, | ||
{ | ||
"name": "add float32 2D tensors", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 float32,float16, and other types of https://webmachinelearning.github.io/webnn/#enumdef-mloperandtype are our target.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this 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).
@fdwr PTAL, thanks.