Skip to content

Conversation

@pk-g
Copy link
Contributor

@pk-g pk-g commented May 3, 2019

No description provided.

@pytorchbot pytorchbot added the module: onnx Related to torch.onnx label May 3, 2019
@pk-g
Copy link
Contributor Author

pk-g commented May 3, 2019

bug fix #19374

@pk-g pk-g force-pushed the peykash/upsample_export_fix branch 3 times, most recently from 250dfe6 to d7faf52 Compare May 3, 2019 23:31
@ezyang ezyang requested a review from houseroad May 6, 2019 14:38
Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

@pk-g pk-g force-pushed the peykash/upsample_export_fix branch from d7faf52 to 5688c7e Compare May 6, 2019 23:36
@pk-g
Copy link
Contributor Author

pk-g commented May 6, 2019

Looks good, can you add a test case to cover the code you add?

Here is an example: https://github.com/pytorch/pytorch/blob/master/test/onnx/test_pytorch_onnx_caffe2.py#L958

Sure, thanks for the reference. Added the test to cover new code.

@pk-g pk-g closed this May 7, 2019
@pk-g pk-g reopened this May 7, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@pk-g pk-g force-pushed the peykash/upsample_export_fix branch from 5688c7e to d21c1e7 Compare May 8, 2019 18:52
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@spandantiwari
Copy link

We should enable the test for Upsample in test_operators.py also.

@unittest.skip("Temporary - waiting for https://github.com/onnx/onnx/pull/1773.")

@mchalecki
Copy link

mchalecki commented May 10, 2019

  1. This bug occurs also in other upsample methods, especially bilinear. I think the fix should be also applied there.
  2. Also why did you delete
    @parse_args('v', 'is')

Choose a reason for hiding this comment

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

This shouldn't be deleted

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess there has been updates to upsample that for the argument output_size it could be either a tensor or a int list. Thus the annotation becomes @parse_args('v', 'v') which can be ignored.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right, as @BowenBao mentioned adding @pars_args('v','v') will be redundant.

Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

See inline comments

@pk-g
Copy link
Contributor Author

pk-g commented May 15, 2019

1. This bug occurs also in other upsample methods, especially bilinear. I think the fix should be also applied there.

@Alcaster Good point, we should definitely address other methods as well. But since in this PR we are trying to fix and unblock issue #19374 (which uses 'nearest' method), how about addressing other methods in a separate PR ?

@houseroad
Copy link
Member

The failing onnx ci is legit. Please fix the failing tests, thanks.

@yzhao30
Copy link

yzhao30 commented May 20, 2019

Does this also fix the "bilinear" upsampling export?

@mchalecki
Copy link

Does this also fix the "bilinear" upsampling export?

@yzhao30 unfortunately not. As mentioned by @pk-g it only unblocks issue #19374

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@houseroad
Copy link
Member

@pk-g friendly ping for fix :-)

@aidonchuk
Copy link

Pls fix =)

@pk-g pk-g force-pushed the peykash/upsample_export_fix branch from 4c75ed8 to 60ae121 Compare May 23, 2019 00:23
@pk-g
Copy link
Contributor Author

pk-g commented May 23, 2019

@Alcaster , @yzhao30 : I extended the fix for bilinear interpolation as well

@pk-g pk-g force-pushed the peykash/upsample_export_fix branch from 60ae121 to 1867cd0 Compare May 23, 2019 05:22
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@houseroad
Copy link
Member

@pk-g please rebase again to make sure the CI pass. The broken CI has been fixed already. Thanks!

@pk-g pk-g force-pushed the peykash/upsample_export_fix branch from 1867cd0 to d7010eb Compare May 23, 2019 18:31
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Member

@houseroad houseroad 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 for fixing the problem.

@facebook-github-bot
Copy link
Contributor

@houseroad merged this pull request in 93d5503.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.