Skip to content

Conversation

sahilg06
Copy link
Contributor

@sahilg06 sahilg06 commented Jun 3, 2021

Refactor Group K mentioned in #3945

  • test_rotate
  • test_rotate_fill
  • test_gaussian_blur_asserts
  • test_lambda

@facebook-github-bot
Copy link
Contributor

Hi @sahilg06!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

1 similar comment
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@sahilg06 sahilg06 changed the title port group K tests in test_transforms to pytest port tests in test_transforms to pytest Jun 3, 2021
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @sahilg06 , this looks great!
LGTM, I re-started the CI and I'll merge when green

img = F.to_pil_image(np.ones((100, 100, 3), dtype=np.uint8) * 255, "RGB")

num_bands = len(mode)
wrong_num_bands = num_bands + 1
Copy link
Member

Choose a reason for hiding this comment

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

This is totally fine as is but just a side note: it's usually good practice to declare a variable in the region where it's used. so in this case we could have declared this one below right before (or within) the with pytest.raises block. It's really a nitpick, no need to change anything!

@NicolasHug
Copy link
Member

All green except for ci/circleci: binary_win_conda_py3.9_cu111 which will probably timeout (again). It's unrelated so I'll merge. Thanks again @sahilg06 !

@NicolasHug NicolasHug merged commit dc5ede7 into pytorch:master Jun 4, 2021
@sahilg06 sahilg06 deleted the refactor-test-rotate branch June 4, 2021 09:11
facebook-github-bot pushed a commit that referenced this pull request Jun 10, 2021
Reviewed By: NicolasHug

Differential Revision: D29027348

fbshipit-source-id: 3aad7d42d36c851b120d009b2724a68524166be7
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.

3 participants