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

[NNVM][TENSORFLOW] bug fix on bilinear and resize op integration in frontend. #1440

Merged
merged 3 commits into from
Jul 18, 2018

Conversation

srkreddy1238
Copy link
Contributor

* strengthen the testcases with random data.

Thanks for contributing to TVM! Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from others in the community.

@srkreddy1238 srkreddy1238 force-pushed the master branch 5 times, most recently from 65009f3 to 924925e Compare July 17, 2018 02:56
…ation to frontend.

	* strengthen the testcases with random data.
@srkreddy1238
Copy link
Contributor Author

@masahi @Huyuwei pls help to review.

@masahi
Copy link
Member

masahi commented Jul 17, 2018

what was the bug?

@srkreddy1238
Copy link
Contributor Author

align_corners check was flipped.
Pixel calculation was simplified to reduce compute.

@masahi
Copy link
Member

masahi commented Jul 18, 2018

do you have a test cast that fails without this PR?

@srkreddy1238
Copy link
Contributor Author

@masahi I found the flag flip issue while checking with tensorflow result (which is a new testcase now with front end integration).

earlier the comparison was with python implementation which also had the flag flip.

The new tensorflow test case should be good enough now

from PIL import Image
img_array = np.random.uniform(size=(1, 600, 600, 3)).astype("uint8")
img = Image.frombuffer('RGB', (600, 600), img_array.tostring(), 'raw', 'RGB', 0, 1)
img.save('tf_test.jpg');
Copy link
Member

Choose a reason for hiding this comment

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

not sure why you need to save an image, but shouldn't this be deleted after test is done?
Or it may be better to use temporary file here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@masahi used temp for image. Please review now.

@tqchen tqchen merged commit 9ed5264 into apache:master Jul 18, 2018
@tqchen
Copy link
Member

tqchen commented Jul 18, 2018

Thanks @srkreddy1238 @masahi , this is merged

tqchen pushed a commit to tqchen/tvm that referenced this pull request Aug 4, 2018
sergei-mironov pushed a commit to sergei-mironov/tvm that referenced this pull request Aug 8, 2018
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