Skip to content

Conversation

@BruceDai
Copy link
Contributor

@fdwr @Honry @dontcallmedom PTAL, thanks.

        reduceL1 / reduceL2 / reduceLogSum / reduceLogSumExp / reduceSumSquare
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.

Minor naming proposal, but otherwise looks correct (and everything matches my spreadsheet :b). Thanks.

case 'reduceL1':
case 'reduceProduct':
case 'reduceSum':
// directly use above computed tolerance
Copy link

Choose a reason for hiding this comment

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

This all looks correct, but rather than assign a tolerance above and then later replace that tolerance with a new value or keep it via switch fallthrough, I think it would be clearer to rename tolerance on line 233 to something like reducedElementCount, and then here say:

tolerance = reducedElementCount
...
tolerance = reducedElementCount * 2 + 18

Functionally it's the same, but semantically the relationship is more apparent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks.

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.

👍

@Honry Honry merged commit e22a649 into web-platform-tests:master Apr 25, 2023
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