Skip to content

upsample_linear1d: port to structured #51917

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

Closed
wants to merge 14 commits into from

Conversation

bdhirsh
Copy link
Contributor

@bdhirsh bdhirsh commented Feb 8, 2021

Porting upsample_linear1d to structured.

The shape checking logic is identical between upsample_linear1d and upsample_nearest1d, so I moved it to UpSample.h. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.

Stack from ghstack:

Differential Revision: D26327750

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Feb 9, 2021

💊 CI failures summary and remediations

As of commit cad2e7b (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-scanned failure(s)

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

@bdhirsh bdhirsh requested review from ezyang and ailzhang February 9, 2021 00:50
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Feb 9, 2021
ghstack-source-id: 549765e
Pull Request resolved: #51917
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Thanks!

Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Feb 9, 2021
ghstack-source-id: c75776a
Pull Request resolved: #51917
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
Porting `upsample_linear1d` to structured.

The shape checking logic is identical between `upsample_linear1d` and `upsample_nearest1d`, so I moved it to `UpSample.h`. We actually already had a function that did something similar, but it also tried to account for differences in shape checking between the forward and backward kernels- I opted instead to let the individual kernels handle those specific cases.


Differential Revision: [D26327750](https://our.internmc.facebook.com/intern/diff/D26327750)

[ghstack-poisoned]
@codecov
Copy link

codecov bot commented Feb 21, 2021

Codecov Report

Merging #51917 (cad2e7b) into gh/bdhirsh/75/base (5208f7e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                 Coverage Diff                 @@
##           gh/bdhirsh/75/base   #51917   +/-   ##
===================================================
  Coverage               80.76%   80.76%           
===================================================
  Files                    1969     1969           
  Lines                  216037   216005   -32     
===================================================
- Hits                   174476   174454   -22     
+ Misses                  41561    41551   -10     

@facebook-github-bot
Copy link
Contributor

@bdhirsh merged this pull request in f3ea5ca.

@facebook-github-bot facebook-github-bot deleted the gh/bdhirsh/75/head branch February 26, 2021 15:18
aocsa pushed a commit to Quansight/pytorch that referenced this pull request Mar 15, 2021
Summary: Pull Request resolved: pytorch#51917

Test Plan: Imported from OSS

Reviewed By: ezyang

Differential Revision: D26327750

Pulled By: bdhirsh

fbshipit-source-id: 443ad278010ce655eb5f08fa6889c45ccb328268
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
Summary: Pull Request resolved: pytorch#51917

Test Plan: Imported from OSS

Reviewed By: ezyang

Differential Revision: D26327750

Pulled By: bdhirsh

fbshipit-source-id: 443ad278010ce655eb5f08fa6889c45ccb328268
@bdhirsh bdhirsh changed the title port upsample_linear1d to structured upsample_linear1d: port to structured (#51917) May 24, 2021
@bdhirsh bdhirsh changed the title upsample_linear1d: port to structured (#51917) upsample_linear1d: port to structured (#51917) May 24, 2021
@bdhirsh bdhirsh changed the title upsample_linear1d: port to structured (#51917) upsample_linear1d: port to structured May 24, 2021
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