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

Negative padding for functional_tensor symmetric #2749

Merged
merged 4 commits into from Oct 5, 2020

Conversation

jamt9000
Copy link
Contributor

@jamt9000 jamt9000 commented Oct 3, 2020

Along with #2744 this will make negative padding
uniform between PIL and Tensor #2381

The natural test would be not excluding "symmetric" here but that relies on the changes in #2744 so I haven't included it here yet.

Along with pytorch#2744 this will make negative padding
uniform between PIL and Tensor pytorch#2381
@vfdev-5
Copy link
Collaborator

vfdev-5 commented Oct 3, 2020

@jamt9000 thanks for the PR. I merged your previous PR, can you please update this one and add missing tests and fix currently failing one. Thanks !

@jamt9000 jamt9000 force-pushed the negative_pad_tensor_symmetric branch from 9dc0602 to 2cbf368 Compare October 5, 2020 13:16
@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

Merging #2749 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2749   +/-   ##
=======================================
  Coverage   73.08%   73.09%           
=======================================
  Files          96       96           
  Lines        8319     8321    +2     
  Branches     1293     1295    +2     
=======================================
+ Hits         6080     6082    +2     
  Misses       1840     1840           
  Partials      399      399           
Impacted Files Coverage Δ
torchvision/transforms/functional_tensor.py 72.54% <100.00%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b41eb0...c198b59. Read the comment docs.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @jamt9000 !

@fmassa
Copy link
Member

fmassa commented Oct 6, 2020

Thanks a lot @jamt9000 for the PRs and @vfdev-5 for the reviews!

bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
* Negative padding for functional_tensor symmetric

Along with pytorch#2744 this will make negative padding
uniform between PIL and Tensor pytorch#2381

* Enable tests for negative symmetric pad with tensor

Co-authored-by: vfdev <vfdev.5@gmail.com>
vfdev-5 added a commit to Quansight/vision that referenced this pull request Dec 4, 2020
* Negative padding for functional_tensor symmetric

Along with pytorch#2744 this will make negative padding
uniform between PIL and Tensor pytorch#2381

* Enable tests for negative symmetric pad with tensor

Co-authored-by: vfdev <vfdev.5@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants