-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
65009f3
to
924925e
Compare
…ation to frontend. * strengthen the testcases with random data.
what was the bug? |
align_corners check was flipped. |
do you have a test cast that fails without this PR? |
@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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Thanks @srkreddy1238 @masahi , this is merged |
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.