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

[webgl] Add default arguments to CropAndResize. #4407

Merged
merged 9 commits into from Dec 16, 2020

Conversation

annxingyuan
Copy link
Collaborator

@annxingyuan annxingyuan commented Dec 15, 2020

I think they were unintentionally removed by #4265

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

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

Hi Ann, can you add these two lines in webgl kernel CropAndResize, similar as in cpu kernel:

  const $method = method || 'bilinear';
  const $extrapolationValue = extrapolationValue || 0;

Reviewable status: 0 of 1 approvals obtained (waiting on @lina128)

Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

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

Also, add a test for method is null and extrapolationValue is null.

Reviewable status: 0 of 1 approvals obtained

@annxingyuan annxingyuan changed the title [core] Revive default arguments to CropAndResize. [webgl] Add default arguments to CropAndResize. Dec 15, 2020
Copy link
Collaborator Author

@annxingyuan annxingyuan left a comment

Choose a reason for hiding this comment

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

Done - please take another look.

Reviewable status: 0 of 1 approvals obtained

Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

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

Thank you Ann!

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @lina128)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants