-
Notifications
You must be signed in to change notification settings - Fork 19.7k
Support various filtering functions in OpenVINO #21836
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
base: master
Are you sure you want to change the base?
Changes from all commits
445b6c0
162f6df
ec0b030
315334d
958ef56
36d35de
f1e10e5
0b366b6
194c6f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3622,6 +3622,15 @@ def test_digitize(self): | |
|
|
||
|
|
||
| class NumpyOneInputOpsCorrectnessTest(testing.TestCase): | ||
| def assertAllClose(self, x1, x2, atol=1e-6, rtol=1e-6, msg=None): | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's not do that, it reduces the precision for dozens of ops. Which op(s) have the issue?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @hertschuh Sure - with this change omitted: -
Alternatively, there could be an |
||
| if backend.backend() == "openvino": | ||
| # OpenVINO seems to use lower precision for some operations, | ||
| # or employs some different algorithms that wind up with | ||
| # slightly different results. To address this, we relax | ||
| # the tolerances for OpenVINO backend. | ||
| atol = 1e-3 | ||
| super().assertAllClose(x1, x2, atol=atol, rtol=rtol, msg=msg) | ||
|
|
||
| def test_mean(self): | ||
| x = np.array([[1, 2, 3], [3, 2, 1]]) | ||
| self.assertAllClose(knp.mean(x), np.mean(x)) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.