Skip to content

Support for interpolation (aten::upsample_nearest) #87

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

Merged
merged 12 commits into from
Jun 8, 2020

Conversation

abhi-iyer
Copy link
Contributor

@abhi-iyer abhi-iyer commented Jun 6, 2020

Description

Support for aten::upsample_nearest3d, aten::upsample_nearest2d, and aten::upsample_nearest1d

Also fixed a bug that forced input tensors to be at least 4 dimensional.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation and have regenerated the documentation (make html in docsrc)
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes

@narendasan narendasan requested review from narendasan and andi4191 June 6, 2020 04:06
@narendasan
Copy link
Collaborator

@abhi-iyer I think you probably should rebase this branch on master to resolve the conflicts

Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

A couple small needed changes so far and the rebase and tests

Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

Marking the other spots for errors

abhi-iyer added 7 commits June 8, 2020 11:17
Signed-off-by: Abhiram Iyer <[email protected]>
Signed-off-by: Abhiram Iyer <[email protected]>
…ample_nearest

Signed-off-by: Abhiram Iyer <[email protected]>
Signed-off-by: Abhiram Iyer <[email protected]>
Signed-off-by: Abhiram Iyer <[email protected]>
Signed-off-by: Abhiram Iyer <[email protected]>
…3d, doesn't work for 1d yet

Signed-off-by: Abhiram Iyer <[email protected]>
Signed-off-by: Abhiram Iyer <[email protected]>
… changed toDimsPad() to toDims()

Signed-off-by: Abhiram Iyer <[email protected]>
Signed-off-by: Abhiram Iyer <[email protected]>
Signed-off-by: Abhiram Iyer <[email protected]>

Signed-off-by: Abhiram Iyer <[email protected]>
abhi-iyer added 3 commits June 8, 2020 12:06
Signed-off-by: Abhiram Iyer <[email protected]>

Signed-off-by: Abhiram Iyer <[email protected]>
@abhi-iyer abhi-iyer changed the title Support for interpolation (aten::upsample_nearest) Support for interpolation (aten::upsample_nearest1d) Jun 8, 2020
@abhi-iyer abhi-iyer changed the title Support for interpolation (aten::upsample_nearest1d) Support for interpolation (aten::upsample_nearest) Jun 8, 2020
Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

Think we are almost there, just the errors we print should be a little more clear. Ill test out the PR and then we should be good to go.

Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

Looks good to me pending those changes to the error messages

@narendasan narendasan merged commit aa131ac into pytorch:master Jun 8, 2020
@narendasan narendasan added this to the v0.1.0 milestone Jun 9, 2020
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.

2 participants