-
Notifications
You must be signed in to change notification settings - Fork 607
preprocess e2e test #4887
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
preprocess e2e test #4887
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4887
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 933bc69 with merge base d9ae7c3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ac75602
to
0c0899c
Compare
@lucylq has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
(image_tensor, inscribed_size, best_resolution) | ||
) | ||
self.assertTrue(torch.allclose(reference_image, et_image)) | ||
self.assertTrue(reference_ar, et_ar) |
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.
Should this be assertEqual
?
eager_image, eager_ar = eager_model( | ||
image_tensor, inscribed_size, best_resolution | ||
) | ||
eager_ar = eager_ar.tolist() | ||
self.assertTrue(torch.allclose(reference_image, eager_image)) | ||
self.assertTrue(reference_ar, eager_ar) |
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.
Same here.
@lucylq has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Run preprocess e2e via pybindings
Test Plan:
python -m unittest examples/models/flamingo/test_preprocess.py