Skip to content

Conversation

zhiqwang
Copy link
Contributor

@zhiqwang zhiqwang commented Jun 3, 2021

To port Group A in test_transforms.py to pytest as discussed in #3945

  • test_1_channel_ndarray_to_pil_image
  • test_1_channel_tensor_to_pil_image
  • test_2_channel_ndarray_to_pil_image
  • test_2_channel_tensor_to_pil_image
  • test_2d_ndarray_to_pil_image
  • test_2d_tensor_to_pil_image
  • test_3_channel_ndarray_to_pil_image
  • test_3_channel_tensor_to_pil_image
  • test_4_channel_ndarray_to_pil_image
  • test_4_channel_tensor_to_pil_image
  • test_ndarray_bad_types_to_pil_image
  • test_tensor_bad_types_to_pil_image

cc @NicolasHug

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 a lot @zhiqwang this looks good!
Perhaps we can take advantage of the parametrization over tuples to avoid a bit of the if/else blocks. I commented below, let me know what you think!

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 a lot @zhiqwang ! Some last minor comment but LGTM when addressed !

@NicolasHug NicolasHug merged commit 02e5bb4 into pytorch:master Jun 5, 2021
@NicolasHug
Copy link
Member

Thanks a lot @zhiqwang !!

@zhiqwang
Copy link
Contributor Author

zhiqwang commented Jun 5, 2021

@NicolasHug Also thanks for your guidances here!

facebook-github-bot pushed a commit that referenced this pull request Jun 10, 2021
…est (#3959)

Reviewed By: NicolasHug

Differential Revision: D29027353

fbshipit-source-id: c165f7cffebf36f0f56277c5a1f0c3a043189ea3
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